CVE-2024-22195Jinja vulnerable to Cross-Site Scripting (XSS)
- 5.4MediumCVSS base score
- 0.89%Exploitation in 30 daysEPSS · top 40% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 3 days later
· 3 days later
Published
- 22 months later
· 22 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.89% · top 40% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIjinja2GHSA-h5c8-rqwp-cp95 (opens in a new tab)
References
References7
- https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/pallets/jinja/releases/tag/3.1.3 (opens in a new tab)x_refsource_MISCx_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5XCWZD464AJJJUBOO7CMPXQ4ROBC6JX2/ (opens in a new tab)x_transferred
- https://lists.debian.org/debian-lts-announce/2024/01/msg00010.html (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/O7YWRBX6JQCWC2XXCTZ55C7DPMGICCN3/ (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/DELCVUUYX75I5K4Q5WMJG4MUZJA6VAIP/ (opens in a new tab)x_transferred
- https://lists.debian.org/debian-lts-announce/2024/12/msg00009.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0365 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-h5c8-rqwp-cp95 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-22195)Record last updated .