CVE-2024-34064
published medium CVSS 3.1 · 5.4Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pallets | — | jinja< 3.1.4 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2573 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2574 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-644 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-645 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | python3-jinja2 | Advisory build | 2.10.1-5.el8_10 | ALSA-2024:4231 |
| Alpine Linux | edge | py3-jinja2 | Fixed | 3.1.4-r0 | Package fix record |
| Debian | bullseye | jinja2 | Advisory build | 2.11.3-1+deb11u1 | DLA-3988-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 8 | python3-jinja2aarch64 | Advisory build | 0:2.10.1-5.el8_10 | ELSA-2024-4231 |
| AlmaLinux | 9 | fence-agents-aliyun | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-all | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-amt-ws | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-apc | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-apc-snmp | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-aws | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-azure-arm | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-bladecenter | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-brocade | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-cisco-mds | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-cisco-ucs | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-common | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-compute | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-drac5 | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-eaton-snmp | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-emerson | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-eps | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-gce | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-heuristics-ping | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-hpblade | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ibm-powervs | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ibm-vpc | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ibmblade | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ifmib | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ilo-moonshot | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ilo-mp | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ilo-ssh | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ilo2 | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-intelmodular | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ipdu | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-ipmilan | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-kdump | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-kubevirt | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-lpar | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-mpath | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-openstack | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-redfish | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-rhevm | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-rsa | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-rsb | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-sbd | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-scsi | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-virsh | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-vmware-rest | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-vmware-soap | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-wti | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-agents-zvm | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-virt | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-virtd | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-virtd-cpg | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-virtd-libvirt | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-virtd-multicast | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-virtd-serial | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | fence-virtd-tcp | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | ha-cloud-support | Advisory build | 4.10.0-62.el9_4.3 | ALSA-2024:3820 |
| AlmaLinux | 9 | python3-jinja2 | Advisory build | 2.11.3-6.el9 | ALSA-2024:9150 |
| Alpine Linux | v3.17 | py3-jinja2 | Fixed | 3.1.4-r0 | Package fix record |
| Alpine Linux | v3.18 | py3-jinja2 | Fixed | 3.1.4-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-jinja2 | Fixed | 3.1.4-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-jinja2 | Fixed | 3.1.4-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-jinja2 | Fixed | 3.1.4-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-jinja2 | Fixed | 3.1.4-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-jinja2 | Fixed | 3.1.4-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-jinja2 | Fixed | 3.1.4-r0 | Package fix record |
| Oracle Linux | 8 | python3-jinja2x86_64 | Advisory build | 0:2.10.1-5.el8_10 | ELSA-2024-4231 |
| Oracle Linux | 9 | fence-agents-allaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-allx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-amt-wsaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-amt-wsx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-apcaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-apcx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-apc-snmpaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-apc-snmpx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-bladecenteraarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-bladecenterx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-brocadeaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-brocadex86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-cisco-mdsaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-cisco-mdsx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-cisco-ucsaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-cisco-ucsx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-commonaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-commonx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-computex86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-drac5aarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-drac5x86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-eaton-snmpaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-eaton-snmpx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-emersonaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-emersonx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-epsaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-epsx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-heuristics-pingaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-heuristics-pingx86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-hpbladeaarch64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
| Oracle Linux | 9 | fence-agents-hpbladex86_64 | Advisory build | 0:4.10.0-62.el9_4.3 | ELSA-2024-3820 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.4 | medium | CISA-ADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pallets | jinja | < 3.1.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
7- https://github.com/pallets/jinja/commit/0668239dc6b44ef38e7a6c9f91f312fd4ca581cb
- https://github.com/pallets/jinja/security/advisories/GHSA-h75v-3vvj-5mfj
- https://lists.debian.org/debian-lts-announce/2024/12/msg00009.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/567XIGSZMABG6TSMYWD7MIYNJSUQQRUC/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GCLF44KY43BSVMTE6S53B4V5WP3FRRSE/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/SSCBHIL6BYKR5NRCBXP4XMP2CEEKGFVS/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZALNWE3TXPPHVPSI3AZ5CTMSTAVN5UMS/
Provider assertions
3GitHub_M · cna
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 67103a3905e23d9852e918c5e0a1221d965e211d4e9ad0f56b88eed78f2b9f33
- Ingested
- 23 Sep 2026, 08:23:23 UTC
- Source record
- Official CVE record