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.
CVE-2024-22195
This medium-severity CVE scores 5.4 under NVD CVSS v3. EPSS exploit probability: 0.2%, top 65% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.4
- EG Score
- 5.4(medium)
- EPSS
- 55.2%
- KEV
- Not listed
Published
January 11, 2024
Last Modified
November 3, 2025
References (13)
- security-advisories@githubhttps://github.com/pallets/jinja/releases/tag/3.1.3
- security-advisories@githubhttps://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95
- security-advisories@githubhttps://lists.debian.org/debian-lts-announce/2024/01/msg00010.html
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/[email protected]/message/5XCWZD464AJJJUBOO7CMPXQ4ROBC6JX2/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/[email protected]/message/DELCVUUYX75I5K4Q5WMJG4MUZJA6VAIP/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/[email protected]/message/O7YWRBX6JQCWC2XXCTZ55C7DPMGICCN3/
- af854a3a-2127-422b-91ae-364da2661108https://github.com/pallets/jinja/releases/tag/3.1.3
- af854a3a-2127-422b-91ae-364da2661108https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/01/msg00010.html
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/12/msg00009.html
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/[email protected]/message/5XCWZD464AJJJUBOO7CMPXQ4ROBC6JX2/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/[email protected]/message/DELCVUUYX75I5K4Q5WMJG4MUZJA6VAIP/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/[email protected]/message/O7YWRBX6JQCWC2XXCTZ55C7DPMGICCN3/
Vendor Advisories for CVE-2024-22195(2)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(14)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python3-jinja2 (3.1.2-1ubuntu0.23.10.1) @ mantic | 2026-05-24 | ubuntu |
| redhat | rhceph/snmp-notifier-rhel9:1.2.1-67 | 2024-06-13 | redhat |
| redhat | python-jinja2-0:2.10.1-4.el8 | 2024-05-22 | redhat |
| redhat | openstack-ansible-core-0:2.14.2-4.3.el9ost | 2024-05-22 | redhat |
| redhat | python27:2.7-8100020240208011952.5f0f67de | 2024-05-22 | redhat |
| redhat | fence-agents-0:4.2.1-129.el8 | 2024-05-22 | redhat |
| redhat | fence-agents-0:4.10.0-62.el9 | 2024-04-30 | redhat |
| redhat | python-jinja2-0:2.11.3-5.el9 | 2024-04-30 | redhat |
| redhat | python-jinja2-0:3.1.3-1.el8pc | 2024-04-23 | redhat |
| redhat | python-jinja2-0:3.1.3-1.el8ui | 2024-04-18 | redhat |
| redhat | automation-controller-0:4.5.5-2.el9ap | 2024-04-02 | redhat |
| redhat | python-jinja2-0:3.1.3-0.1.el8pc | 2024-03-27 | redhat |
| redhat | fence-agents-0:4.10.0-20.el9_0.11 | 2024-03-05 | redhat |
| redhat | python-jinja2-0:3.1.3-1.el9ap | 2024-02-29 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| jinja2 | 2.0 ... 3.1.2 (48 versions) | 3.1.3 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(13)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2024-221952024-01-17
Jinja vulnerable to Cross-Site Scripting (XSS)
- Red HatRHSA-2024:1057MODERATE2024-01-11
RHSA-2024:1057 — Moderate
- Red HatRHSA-2024:1155MODERATE2024-01-11
RHSA-2024:1155 — Moderate
- Red HatRHSA-2024:1536MODERATE2024-01-11
RHSA-2024:1536 — Moderate
- Red HatRHSA-2024:1878MODERATE2024-01-11
RHSA-2024:1878 — Moderate
- Red HatRHSA-2024:2010MODERATE2024-01-11
RHSA-2024:2010 — Moderate
- Red HatRHSA-2024:2132MODERATE2024-01-11
RHSA-2024:2132 — Moderate
- Red HatRHSA-2024:2348MODERATE2024-01-11
RHSA-2024:2348 — Moderate
- Red HatRHSA-2024:2733MODERATE2024-01-11
RHSA-2024:2733 — Moderate
- Red HatRHSA-2024:2968MODERATE2024-01-11
RHSA-2024:2968 — Moderate
- Red HatRHSA-2024:2987MODERATE2024-01-11
RHSA-2024:2987 — Moderate
- Red HatRHSA-2024:3102MODERATE2024-01-11
RHSA-2024:3102 — Moderate
- UbuntuUSN-6599-1MEDIUM
Jinja2 vulnerabilities
Data Freshness Timeline
(refreshed 10× in last 7d / 48× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-01 15:05 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-29 14:05 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-26 23:39 UTCOSV refresh
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
Show 64 moreShow fewer
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-09 10:10 UTCOSV refresh
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-24 10:34 UTCEG score recompute
- 2026-05-24 10:34 UTCVendor advisory
Frequently asked(5)
What is CVE-2024-22195?
When was CVE-2024-22195 disclosed?
Is CVE-2024-22195 actively exploited?
What is the CVSS score of CVE-2024-22195?
How do I remediate CVE-2024-22195?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2024-22195
Is Your Infrastructure Affected by CVE-2024-22195?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.