CVE catalog

CVE-2024-34064

Jinja2 vulnerability

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.98% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianjinja2sid3.1.6-4fixed
Debianjinja2forky3.1.6-4fixed
Debianjinja2trixie3.1.6-1fixed
Debianjinja2bookworm3.1.2-1+deb12u3fixed
Ubuntujinja2noble3.1.2-1ubuntu1.1fixed
Ubuntupython-jinja2-docnoble3.1.2-1ubuntu1.1fixed
Ubuntupython3-jinja2noble3.1.2-1ubuntu1.1fixed
Alpinepy3-jinja23.173.1.4-r0fixed
Alpinepy3-jinja23.183.1.4-r0fixed
Alpinepy3-jinja23.193.1.4-r0fixed
Alpinepy3-jinja23.203.1.4-r0fixed
Alpinepy3-jinja23.213.1.4-r0fixed
Alpinepy3-jinja23.223.1.4-r0fixed
Alpinepy3-jinja23.233.1.4-r0fixed
Alpinepy3-jinja23.243.1.4-r0fixed
Ubuntujinja2pro2.9.6-1vulnerable
Ubuntujinja2pro2.10-1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm2fixed
Ubuntujinja220.042.10-2ubuntu1vulnerable
Ubuntujinja220.042.10-2ubuntu2vulnerable
Ubuntujinja220.042.10.1-1ubuntu1vulnerable
Ubuntujinja220.042.10.1-2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.3fixed
Ubuntujinja222.042.11.3-1vulnerable
Ubuntujinja222.043.0.1-2vulnerable
Ubuntujinja222.043.0.3-1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.2fixed
Ubuntujinja224.043.1.2-1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1.1fixed
Susepython-Jinja2manager client tools 122.8-19.26.1fixed
Susepython-Jinja2linux enterprise module for advanced systems management 122.8-19.26.1fixed
Susepython-Jinja2linux enterprise module for public cloud 122.8-19.26.1fixed
Ubuntujinja2pro2.9.6-1vulnerable
Ubuntujinja2pro2.10-1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm2fixed
Ubuntujinja220.042.10-2ubuntu1vulnerable
Ubuntujinja220.042.10-2ubuntu2vulnerable
Ubuntujinja220.042.10.1-1ubuntu1vulnerable
Ubuntujinja220.042.10.1-2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.3fixed
Ubuntujinja222.042.11.3-1vulnerable
Ubuntujinja222.043.0.1-2vulnerable
Ubuntujinja222.043.0.3-1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.2fixed
Ubuntujinja224.043.1.2-1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianjinja2sourcesid3.1.3-1.1not yet assignedNot reported[1070712]
Debianjinja2sourceforky3.1.3-1.1not yet assignedNot reported[1070712]
Debianjinja2sourcetrixie3.1.3-1.1not yet assignedNot reported[1070712]
Debianjinja2sourcebookworm3.1.2-1+deb12u1not yet assignedNot reported[1070712]
Ubuntujinja2debnoble3.1.2-1ubuntu1.1Not reportedNot reportedNot reported
Ubuntupython-jinja2-docdebnoble3.1.2-1ubuntu1.1Not reportedNot reportedNot reported
Ubuntupython3-jinja2debnoble3.1.2-1ubuntu1.1Not reportedNot reportedNot reported
Alpinepy3-jinja2apk3.173.1.4-r0Not reportedALPINE-CVE-2024-34064Not reported
Alpinepy3-jinja2apk3.183.1.4-r0Not reportedALPINE-CVE-2024-34064Not reported
Alpinepy3-jinja2apk3.193.1.4-r0Not reportedALPINE-CVE-2024-34064Not reported
Alpinepy3-jinja2apk3.203.1.4-r0Not reportedALPINE-CVE-2024-34064Not reported
Alpinepy3-jinja2apk3.213.1.4-r0Not reportedALPINE-CVE-2024-34064Not reported
Alpinepy3-jinja2apk3.223.1.4-r0Not reportedALPINE-CVE-2024-34064Not reported
Alpinepy3-jinja2apk3.233.1.4-r0Not reportedALPINE-CVE-2024-34064Not reported
Alpinepy3-jinja2apk3.243.1.4-r0Not reportedALPINE-CVE-2024-34064Not reported
Ubuntujinja2debpro2.10-1ubuntu0.18.04.1+esm2Not reportedUSN-6787-1Not reported
Ubuntujinja2deb20.042.10.1-2ubuntu0.3Not reportedUSN-6787-1Not reported
Ubuntujinja2deb22.043.0.3-1ubuntu0.2Not reportedUSN-6787-1Not reported
Ubuntujinja2deb24.043.1.2-1ubuntu1.1Not reportedUSN-6787-1Not reported
Susepython-Jinja2rpmmanager client tools 122.8-19.26.1Not reportedSUSE-SU-2024:1948-1Not reported
Susepython-Jinja2rpmlinux enterprise module for advanced systems management 122.8-19.26.1Not reportedSUSE-SU-2024:1948-1Not reported
Susepython-Jinja2rpmlinux enterprise module for public cloud 122.8-19.26.1Not reportedSUSE-SU-2024:1948-1Not reported
Ubuntujinja2debpro2.10-1ubuntu0.18.04.1+esm2Not reportedUBUNTU-CVE-2024-34064Not reported
Ubuntujinja2deb20.042.10.1-2ubuntu0.3Not reportedUBUNTU-CVE-2024-34064Not reported
Ubuntujinja2deb22.043.0.3-1ubuntu0.2Not reportedUBUNTU-CVE-2024-34064Not reported
Ubuntujinja2deb24.043.1.2-1ubuntu1.1Not reportedUBUNTU-CVE-2024-34064Not reported

[Debian bug #1070712]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References