XSS in Pallets Jinja
CVE-2024-22195
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.009 (57.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 58th percentile — 57.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.009 · newest: 0.009 · change: 0.000
Affected products
- Pallets Jinja — versions < 3.1.3
- Palletsprojects Jinja
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95 (Third Party Advisory)
- github.com/pallets/jinja/releases/tag/3.1.3 (Release Notes)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.debian.org/debian-lts-announce/2024/01/msg00010.html
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2024-22195?
- CVE-2024-22195 is a medium-severity vulnerability in Pallets Jinja, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2024-01-11.
- How severe is CVE-2024-22195?
- Medium severity. CVSS v3 base score is 5.4 out of 10.
- Is CVE-2024-22195 known to be exploited?
- 4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.