CVE-2024-34064: Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
Noroxi assessment
Priority: Monitor (action score 21/100)
- Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.97% (FIRST EPSS); higher than 62.1% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: pallets jinja 3.1.4; azl3 nodejs 20.14.0-1 on Azure Linux 3.0 20.14.0-1; azl3 nodejs 20.14.0-8 on Azure Linux 3.0 20.14.0-1.
Low priority for now. Upgrade to pallets jinja 3.1.4; azl3 nodejs 20.14.0-1 on Azure Linux 3.0 20.14.0-1; azl3 nodejs 20.14.0-8 on Azure Linux 3.0 20.14.0-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2025-00945
- GHSA-h75v-3vvj-5mfj
- ALSA-2024:3820
- ALSA-2024:4231
- ALSA-2024:9150
- DLA-3988-1
- openSUSE-SU-2024:13930-1
- openSUSE-SU-2026:11992-1
- PYSEC-2026-1474
- RHSA-2024:3781
- RHSA-2024:3795
- RHSA-2024:3811
- RHSA-2024:3820
- RHSA-2024:4231
- RHSA-2024:4404
- RHSA-2024:4414
- RHSA-2024:4427
- RHSA-2024:4522
- RHSA-2024:4616
- RHSA-2024:4958
- Published
- May 6, 2024
- Updated
- Jun 17, 2026
- EPSS
- 0.9% · 62th percentile
- CWE
- CWE-79
Report tools
Action score
21
Monitor
Low priority for now.
- CVSS
- 21 / 40 · 5.4 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.9%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · GitHub_M
- 5.4
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| palletsprojects | jinja | cpe:2.3:a:palletsprojects:jinja |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Limit the impact of XSS
This is a cross-site scripting (XSS) vulnerability. A well-configured Content-Security-Policy doesn't fix it, but greatly reduces its impact. Check your site's CSP and other security headers for free.
Check security headersAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora39
- fedoraproject fedora40
- palletsprojects jinjabefore 3.1.4
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
pallets jinja
- < 3.1.4affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | python3-jinja2 | before 2.10.1-5.el8_10 | 2.10.1-5.el8_10 |
| AlmaLinux:9 | fence-agents-aliyun | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-all | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-amt-ws | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-apc | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-apc-snmp | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-aws | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-azure-arm | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-bladecenter | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-brocade | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-cisco-mds | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-cisco-ucs | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-common | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-compute | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-drac5 | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-eaton-snmp | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-emerson | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-eps | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-gce | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-heuristics-ping | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-hpblade | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-ibm-powervs | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-ibm-vpc | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
| AlmaLinux:9 | fence-agents-ibmblade | before 4.10.0-62.el9_4.3 | 4.10.0-62.el9_4.3 |
+96
Same product
palletsprojects: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-10745In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.35Monitor
- CVE-2019-10906In Pallets Jinja before 2.10.1, str.format_map allows a sandbox escape.35Monitor
- CVE-2024-22195Jinja vulnerable to Cross-Site Scripting (XSS)24Monitor
Published before and after this one in the same product
- ← EarlierCVE-2020-28493Feb 1, 2021 · Regular Expression Denial of Service (ReDoS)22Monitor
- Later →CVE-2024-56201Dec 23, 2024 · Jinja has a sandbox breakout through malicious filenames21Monitor
- Later →CVE-2024-56326Dec 23, 2024 · Jinja has a sandbox breakout through indirect reference to format method21Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| pallets jinja | 3.1.4 · description | Vendor (CNA) |
| azl3 nodejs 20.14.0-1 on Azure Linux 3.0 | 20.14.0-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| azl3 nodejs 20.14.0-8 on Azure Linux 3.0 | 20.14.0-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| azl3 python-jinja2 3.1.2-2 on Azure Linux 3.0 | 3.1.2-2 · CBL-Mariner Releases | Microsoft (MSRC) |
| azl3 python-jinja2 3.1.2-3 on Azure Linux 3.0 | 3.1.2-2 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 nodejs18 18.20.3-4 on CBL Mariner 2.0 | 18.20.3-4 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 nodejs18 18.20.3-5 on CBL Mariner 2.0 | 18.20.3-4 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 nodejs18 18.20.3-5 on CBL-Mariner 2.0 | 18.20.3-4 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 python-jinja2 3.0.3-4 on CBL Mariner 2.0 | 3.0.3-4 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 python-jinja2 3.0.3-7 on CBL Mariner 2.0 | 3.0.3-4 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 python-jinja2 3.0.3-7 on CBL-Mariner 2.0 | 3.0.3-4 · CBL-Mariner Releases | Microsoft (MSRC) |
| almalinux:fence-agents-aliyun | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-all | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-amt-ws | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-apc | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-apc-snmp | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-aws | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-azure-arm | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-bladecenter | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-brocade | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-cisco-mds | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-cisco-ucs | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:fence-agents-common | 4.10.0-62.el9_4.3 · AlmaLinux:9 | Package registry (OSV) |
| alpine:py3-jinja2 | 3.1.4-r0 · Alpine:v3.17 | Package registry (OSV) |
| debian:jinja2 | 3.1.2-1+deb12u1 · Debian:12 | Package registry (OSV) |
| opensuse:python-Jinja2 | 2.10.1-150000.3.13.1 · openSUSE:Leap Micro 5.3 | Package registry (OSV) |
| PyPI:jinja2 | 3.1.4 | Package registry (OSV) |
| red hat:automation-controller-venv-tower | 0:4.5.7-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8 | Package registry (OSV) |
| red hat:python-cryptography | 0:42.0.5-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9 | Package registry (OSV) |
| red hat:python-cryptography-debugsource | 0:42.0.5-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9 | Package registry (OSV) |
+12
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×7
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:0 | 2026-03-09 |
| Proof-of-concept repository on GitHub | stars:0 | 2026-03-09 |
| Proof-of-concept repository on GitHub | stars:0 | 2026-03-09 |
| Proof-of-concept repository on GitHub | stars:0 | 2026-03-09 |
| Proof-of-concept repository on GitHub | stars:0 | 2026-03-09 |
| Proof-of-concept repository on GitHub | stars:0 | 2026-03-10 |
| Proof-of-concept repository on GitHub | stars:0 | 2026-03-10 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+672 d
- TodayNov 1, 2026+909 d
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2024-22195117 days apartJinja vulnerable to Cross-Site Scripting (XSS)24Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
nvd-secondary
Root cause
User content is inserted into the page as HTML. The browser interprets the content as code rather than data.
The bug in code
The whole CWE-79 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
commentEl.innerHTML = comment.body;Fixed
commentEl.textContent = comment.body;Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (6 more)Show less
- github.com/pallets/jinja/security/advisories/GHSA-h75v-3vvj-5mfj
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/567XIGSZMABG6TSMYWD7MIYNJSUQQRUC/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCLF44KY43BSVMTE6S53B4V5WP3FRRSE/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SSCBHIL6BYKR5NRCBXP4XMP2CEEKGFVS/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZALNWE3TXPPHVPSI3AZ5CTMSTAVN5UMS/
- lists.debian.org/debian-lts-announce/2024/12/msg00009.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.