CVE-2024-22195: Jinja vulnerable to Cross-Site Scripting (XSS)
Vulnerability summary
CVE-2024-22195 is a medium (CVSS 6.1) vulnerability in pallets jinja. EPSS estimates a 0.89% chance of exploitation in the next 30 days, higher than 59.4% of scored vulnerabilities.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 27 · Related 17Timeline
- 11-01-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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 metrics
9 scores · 9 sources · 1 version- CVE.orgCNA5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · PypiEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
- OSV · Red hatEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.89%
Chance of exploitation in the next 30 days
Percentile
59%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.89% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat56 products
- fence-agents< 0:4.2.1-121.el8_9.4 | < 0:4.2.1-112.el8_8.3
- fence-agents-aliyun< 0:4.2.1-121.el8_9.4 | < 0:4.2.1-112.el8_8.3
- fence-agents-aliyun-debuginfo< 0:4.2.1-121.el8_9.4 | < 0:4.2.1-112.el8_8.3
- fence-agents-all< 0:4.2.1-121.el8_9.4 | < 0:4.2.1-112.el8_8.3
- fence-agents-amt-ws< 0:4.2.1-121.el8_9.4 | < 0:4.2.1-112.el8_8.3
Chainguard9 products
- checkov< 3.0.34-r1
- kubeflow-pipelines-visualization-server< 2.4.0-r0
- py3-jinja2< 3.1.3-r1
- py3-supported-jinja2< 3.1.3-r1
- py3.10-jinja2< 3.1.3-r1
Wolfi9 products
- checkov< 3.0.34-r1
- kubeflow-pipelines-visualization-server< 2.4.0-r0
- py3-jinja2< 3.1.3-r1
- py3-supported-jinja2< 3.1.3-r1
- py3.10-jinja2< 3.1.3-r1
Alpine1 product
- py3-jinja2< 3.1.4-r0 | < 3.1.3-r0
Debian1 product
- jinja2< 2.10-2+deb10u1 | < 3.1.2-1+deb12u1 | < 3.1.3-1
Opensuse1 product
- python-Jinja2&distro=openSUSE Tumbleweed< 3.1.3-1.1
Pallets1 product
- jinja< 3.1.3
Palletsprojects1 product
- jinja< 3.1.3
PyPI1 product
- jinja2< 3.1.3
Ubuntu1 product
- jinja2< 2.7.2-2ubuntu0.1~esm2 | < 2.8-1ubuntu0.1+esm2 | < 2.10-1ubuntu0.18.04.1+esm1 | < 2.10.1-2ubuntu0.2 | < 3.0.3-1ubuntu0.1 | < 3.1.2-1ubuntu1
10 vendors · 81 products
References
38 links- github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95X Refsource CONFIRMWEBARTICLEREPORTAdvisoryThird Party Advisory
Show all 38 references
- github.com/pallets/jinjaPACKAGE
- pypi.org/project/jinja2PACKAGE