Bump Jinja2 to >=3.1.6 and MarkupSafe to >=2.1.0 to fix CVEs - #1573
Closed
PraveshKoirala wants to merge 1 commit into
Closed
Bump Jinja2 to >=3.1.6 and MarkupSafe to >=2.1.0 to fix CVEs#1573PraveshKoirala wants to merge 1 commit into
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) Bump Jinja2 from ==2.11.3 to >=3.1.6 to resolve all four. Bump MarkupSafe from ==0.23 to >=2.1.0 as required by Jinja2 3.x. Note: Sphinx==1.8.6 may need updating for Jinja2 3.x compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Jinja2from==2.11.3to>=3.1.6to resolve four known CVEsMarkupSafefrom==0.23to>=2.1.0(required by Jinja2 3.x)CVEs resolved
xmlattrfilter accepting keys with spacesxmlattrfilter (keys with/,>,=)str.formatContext
These are dev-only dependencies (used for documentation generation via Sphinx), not runtime dependencies. The existing Dependabot PR #1322 targets Jinja2 3.1.3 which still leaves CVE-2024-56326 and CVE-2025-27516 unpatched.
Note
Sphinx==1.8.6may also need to be bumped for full compatibility with Jinja2 3.x. Happy to update this PR if needed.🤖 Generated with Claude Code