Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk: Medium] Improper Neutralization and Template Injection #6617

Open
1 task
tmpayton opened this issue Jan 2, 2025 · 0 comments
Open
1 task

[Snyk: Medium] Improper Neutralization and Template Injection #6617

tmpayton opened this issue Jan 2, 2025 · 0 comments
Labels
Security: moderate Remediate within 60 days
Milestone

Comments

@tmpayton
Copy link
Contributor

tmpayton commented Jan 2, 2025

Introduced through
[email protected] and [email protected]

Fixed in
[email protected]

Exploit maturity
No known exploit

Detailed paths and remediation
Introduced through: root@* › [email protected]
Fix: Upgrade jinja2 to version 3.1.5
Introduced through: root@* › [email protected][email protected]
Fix: Pin jinja2 to version 3.1.5
Security information

Factors contributing to the scoring:
Snyk: CVSS v4.0 5.4 - Medium Severity | CVSS v3.1 6.7 - Medium Severity
NVD: Not available. NVD has not yet published its analysis.
Why are the scores different? Learn how Snyk evaluates vulnerability scores

Overview
Affected versions of this package are vulnerable to Improper Neutralization when importing a macro in a template whose filename is also a template. This will result in a SyntaxError: f-string: invalid syntax error message because the filename is not properly escaped, indicating that it is being treated as a format string.

Note: This is only exploitable when the attacker controls both the content and filename of a template and the application executes untrusted templates.

Completion Criteria

  • Jinja is upgraded to 3.1.5
@tmpayton tmpayton added the Security: moderate Remediate within 60 days label Jan 2, 2025
@tmpayton tmpayton added this to the 27.5 milestone Jan 2, 2025
@tmpayton tmpayton moved this to 🔜 Sprint backlog in Website project Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Security: moderate Remediate within 60 days
Projects
Status: 🔜 Sprint backlog
Development

No branches or pull requests

1 participant