fix(security): bump Jinja2 to >=3.1.6 — fixes CVE-2024-22195, CVE-2024-34064, CVE-2024-56326, CVE-2025-27516 - #1574
Open
PraveshKoirala wants to merge 1 commit into
Conversation
Jinja2 2.11.3 is affected by four CVEs: - CVE-2024-22195: XSS via xmlattr filter (fixed in 3.1.3) - CVE-2024-34064: XSS via xmlattr filter keys (fixed in 3.1.4) - CVE-2024-56326: Sandbox breakout via str.format (fixed in 3.1.5) - CVE-2025-27516: Sandbox breakout via attr filter (fixed in 3.1.6) MarkupSafe bumped from ==0.23 to >=2.1.0 as required by Jinja2 3.x. All tests pass (1609 pytest, 650 behave scenarios) on Python 3.12.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jinja2 2.11.3 (currently pinned in
[dependency-groups] dev) is affected by four CVEs:xmlattrfilter accepting keys with spacesxmlattrfilter (keys with/,>,=)str.formatChanges:
Jinja2from==2.11.3to>=3.1.6MarkupSafefrom==0.23to>=2.1.0(required by Jinja2 3.x)All tests pass on Python 3.12: 1609 pytest, 650 behave scenarios.
Supersedes #1322 which only bumps to 3.1.3 (missing two later CVEs).