Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Palletsprojects | Jinja | < 3.1.3 |
Related Weaknesses (CWE)
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://lists.debian.org/debian-lts-announce/2024/01/msg00010.html
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- 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://lists.debian.org/debian-lts-announce/2024/01/msg00010.html
- https://lists.debian.org/debian-lts-announce/2024/12/msg00009.html
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
FAQ
What is CVE-2024-22195?
CVE-2024-22195 is a vulnerability with a CVSS score of 5.4 (MEDIUM). 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 te...
How severe is CVE-2024-22195?
CVE-2024-22195 has been rated MEDIUM with a CVSS base score of 5.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-22195?
Check the references section above for vendor advisories and patch information. Affected products include: Palletsprojects Jinja.