PT-2024-1412 · Jinja2+10 · Jinja2+10
Calumhutton
·
Published
2024-01-10
·
Updated
2026-06-03
·
CVE-2024-22195
CVSS v2.0
6.4
Medium
| Vector | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Name of the Vulnerable Software and Affected Versions
Jinja2 (affected versions not specified)
Description
Jinja is an extensible templating engine that allows writing code similar to Python syntax. The Jinja
xmlattr filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to Cross-Site Scripting (XSS). It may also be possible to bypass attribute validation checks if they are blacklist-based. The xmlattr filter in affected versions of Jinja accepts keys containing spaces, which can be used to inject other attributes and perform XSS.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Jinja2
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu