CVE-2024-22195
Last modified
CVE-2024-22195 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. EPSS estimates a 0.89% chance of exploitation in the next 30 days.
Description
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially leading to Cross-Site Scripting (XSS). The Jinja `xmlattr` filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to XSS. It may also be possible to bypass attribute validation checks if they are blacklist-based.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Palletsprojects | Jinja | < 3.1.3 |
References
- https://github.com/pallets/jinja/releases/tag/3.1.3Release Notes
- https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95Third Party Advisory
- https://github.com/pallets/jinja/releases/tag/3.1.3Release Notes
- https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-22195?
How severe is CVE-2024-22195?
How do I fix CVE-2024-22195?
Are you affected by CVE-2024-22195?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
