CVE-2024-22195Medium· 5.4▾ SunlitJinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
▾ Sunlit zone — Low / medium · no exploitation signal
impact 29.7 · likelihood 0.2 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 8.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
0.9%
Last analysed / modified upstream
The xmlattr filter in affected versions of Jinja accepts keys containing spaces. XML/HTML attributes cannot contain spaces, as each would then be interpreted as a separate attribute. If an application accepts keys (as opposed to only values) as user input, and renders these in pages that other users see as well, an attacker could use this to inject other attributes and perform XSS. Note that accepting keys as user input is not common or a particularly intended use case of the xmlattr filter, and an application doing so should already be verifying what keys are provided regardless of this fix.
jinja2 < 3.1.3Upgrade to a patched release:
jinja2 3.1.3Connected by shared product, vendor, weakness, or advisory.
CVE-2024-56326High· 7.8Jinja has a sandbox breakout through indirect reference to format method
CVE-2024-56201High· 8.8Jinja has a sandbox breakout through malicious filenames
CVE-2025-27516Medium· 7.3Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
CVE-2024-34064Medium· 5.4Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
CVE-2021-41164High· 8.2CKEditor4 is an open source WYSIWYG HTML editor
CVE-2021-41184Medium· 6.5jQuery-UI is the official jQuery user interface library