Jinja is an extensible templating engine. The xmlattr filter in affected versions of Jinja accepts keys containing non-attribute characters. XML/HTML attributes cannot contain spaces, /, >, or =, as each would then be interpreted as starting a separate attribute. If an application accepts keys (as opposed to only values) as user input, and renders these in pages that other users see as well, an attacker could use this to inject other attributes and perform XSS. The fix for CVE-2024-22195 only addressed spaces but not other characters. Accepting keys as user input is now explicitly considered an unintended use case of the xmlattr filter, and code that does so without otherwise validating the input should be flagged as insecure, regardless of Jinja version. Accepting _values_ as user input continues to be safe. This vulnerability is fixed in 3.1.4.
CVE-2024-34064
This medium-severity CVE scores 5.4 under NVD CVSS v3. EPSS exploit probability: 0.9%, top 24% 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)
- EG Risk
- —
- EPSS
- 58.5%
- KEV
- Not listed
Published
May 6, 2024
Last Modified
November 3, 2025
References (13)
- security-advisories@githubhttps://github.com/pallets/jinja/commit/0668239dc6b44ef38e7a6c9f91f312fd4ca581cb
- security-advisories@githubhttps://github.com/pallets/jinja/security/advisories/GHSA-h75v-3vvj-5mfj
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/567XIGSZMABG6TSMYWD7MIYNJSUQQRUC/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCLF44KY43BSVMTE6S53B4V5WP3FRRSE/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SSCBHIL6BYKR5NRCBXP4XMP2CEEKGFVS/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZALNWE3TXPPHVPSI3AZ5CTMSTAVN5UMS/
- af854a3a-2127-422b-91ae-364da2661108https://github.com/pallets/jinja/commit/0668239dc6b44ef38e7a6c9f91f312fd4ca581cb
- af854a3a-2127-422b-91ae-364da2661108https://github.com/pallets/jinja/security/advisories/GHSA-h75v-3vvj-5mfj
- 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/package-announce@lists.fedoraproject.org/message/567XIGSZMABG6TSMYWD7MIYNJSUQQRUC/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCLF44KY43BSVMTE6S53B4V5WP3FRRSE/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SSCBHIL6BYKR5NRCBXP4XMP2CEEKGFVS/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZALNWE3TXPPHVPSI3AZ5CTMSTAVN5UMS/
Vendor Advisories for CVE-2024-34064(6)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2024:9150Red Hat Product SecurityMedium
Red Hat Security Advisory: python-jinja2 security update
- RHSA-2024:6011Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Container Platform 4.13.49 packages and security update
- RHSA-2024:5662Red Hat Product SecurityMedium
Red Hat Security Advisory: Satellite 6.15.3 Security Update
- RHSA-2024:4958Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Container Platform 4.15.25 packages and security update
- RHSA-2024:4616Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Container Platform 4.16.4 packages and security update
- RHSA-2024:4427Red Hat Product SecurityMedium
Red Hat Security Advisory: fence-agents security update
Patch Availability(15)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python3-jinja2 (2.8-1ubuntu0.1+esm3) @ xenial | 2026-05-24 | ubuntu |
| redhat | python-jinja2-0:3.1.4-1.el8ui | 2025-02-12 | redhat |
| redhat | python-jinja2-0:2.11.3-6.el9 | 2024-11-12 | redhat |
| redhat | python-jinja2-0:3.0.1-3.el9.1 | 2024-09-04 | redhat |
| redhat | python-jinja2-0:3.1.4-1.el8pc | 2024-08-20 | redhat |
| redhat | automation-controller-0:4.5.8-1.el9ap | 2024-07-12 | redhat |
| redhat | fence-agents-0:4.10.0-20.el9_0.13 | 2024-07-09 | redhat |
| redhat | fence-agents-0:4.10.0-43.el9_2.6 | 2024-07-09 | redhat |
| redhat | fence-agents-0:4.2.1-89.el8_6.12 | 2024-07-09 | redhat |
| redhat | python-jinja2-0:2.10.1-5.el8_10 | 2024-07-02 | redhat |
| redhat | rhdh/rhdh-hub-rhel9:1.2-105 | 2024-06-24 | redhat |
| redhat | fence-agents-0:4.10.0-62.el9_4.3 | 2024-06-11 | redhat |
| redhat | fence-agents-0:4.2.1-112.el8_8.6 | 2024-06-11 | redhat |
| redhat | fence-agents-0:4.2.1-65.el8_4.15 | 2024-06-11 | redhat |
| redhat | python-jinja2-0:3.1.4-1.el9ap | 2024-06-10 | 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.3 (49 versions) | 3.1.4 | — |
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-340642024-05-13
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
- Red HatRHEA-2024:4071MODERATE2024-05-06
RHEA-2024:4071 — Moderate
- Red HatRHSA-2024:3781MODERATE2024-05-06
RHSA-2024:3781 — Moderate
- Red HatRHSA-2024:3795MODERATE2024-05-06
RHSA-2024:3795 — Moderate
- Red HatRHSA-2024:3811MODERATE2024-05-06
RHSA-2024:3811 — Moderate
- Red HatRHSA-2024:3820MODERATE2024-05-06
RHSA-2024:3820 — Moderate
- Red HatRHSA-2024:4231MODERATE2024-05-06
RHSA-2024:4231 — Moderate
- Red HatRHSA-2024:4404MODERATE2024-05-06
RHSA-2024:4404 — Moderate
- Red HatRHSA-2024:4414MODERATE2024-05-06
RHSA-2024:4414 — Moderate
- Red HatRHSA-2024:4522MODERATE2024-05-06
RHSA-2024:4522 — Moderate
- Red HatRHSA-2024:5810MODERATE2024-05-06
RHSA-2024:5810 — Moderate
- Red HatRHSA-2025:1335MODERATE2024-05-06
RHSA-2025:1335 — Moderate
- UbuntuUSN-6787-1MEDIUM
Jinja2 vulnerability
Data Freshness Timeline
(refreshed 11× in last 7d / 45× 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-22 14:07 UTCEPSS rescore
- 2026-07-22 14:07 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-20 17:06 UTCEPSS rescore
- 2026-07-19 14:30 UTCEPSS rescore
- 2026-07-19 14:30 UTCEPSS rescore
- 2026-07-19 02:28 UTCEPSS rescore
- 2026-07-19 02:28 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-16 17:02 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-14 11:25 UTCOSV refresh
- 2026-07-13 22:29 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:14 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
Show 75 moreShow fewer
- 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-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 12:07 UTCOSV refresh
- 2026-06-25 13:49 UTCEPSS rescore
- 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:25 UTCEPSS rescore
- 2026-06-22 14:25 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:25 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-16 17:52 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-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-08 18:41 UTCOSV refresh
- 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-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 02:50 UTCEG score recompute
- 2026-05-24 02:50 UTCVendor advisory
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Frequently asked(5)
What is CVE-2024-34064?
When was CVE-2024-34064 disclosed?
Is CVE-2024-34064 actively exploited?
What is the CVSS score of CVE-2024-34064?
How do I remediate CVE-2024-34064?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2024-34064
Is Your Infrastructure Affected by CVE-2024-34064?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.