Safety vulnerability ID: 64227
The information on this page was manually curated by our Cybersecurity Intelligence Team.
Jinja2 before 3.1.3 is affected by a Cross-Site Scripting vulnerability. 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. 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.
Latest version: 3.1.4
A very fast and expressive template engine.
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. See CVE-2024-22195.
MISC:https://github.com/pallets/jinja/releases/tag/3.1.3: https://github.com/pallets/jinja/releases/tag/3.1.3
MISC:https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95: https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95
Scan your Python project for dependency vulnerabilities in two minutes
Scan your application