ADVISORIES

Vulnerability

CVE-2024-34064

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.

82 advisories report this vulnerability, across 15 ecosystems.

Advisories

  • ALAS2-2024-2573

    Amazon Linux 2 2017.12 - ALAS2-2024-2573: medium priority package update for python3-jinja2

    Medium CVE-2024-34064 Amazon Linux Updated 24 June 2024
  • ALAS2-2024-2574

    Amazon Linux 2 2017.12 - ALAS2-2024-2574: medium priority package update for python-jinja2

    Medium CVE-2024-34064 Amazon Linux Updated 24 June 2024
  • ALAS2023-2024-644

    Amazon Linux 2023 - ALAS2023-2024-644: Medium priority package update for ansible-core

    Medium CVE-2024-34064 Amazon Linux Updated 24 June 2024
  • ALAS2023-2024-645

    Amazon Linux 2023 - ALAS2023-2024-645: Medium priority package update for python-jinja2

    Medium CVE-2024-34064 Amazon Linux Updated 24 June 2024
  • ALPINE-CVE-2024-34064

    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…

    CVE-2024-34064 Alpine Updated 2 November 2026
  • ALPINE-EDGE-CVE-2024-34064
    CVE-2024-34064 Alpine Updated 18 November 2026
  • ALSA-2024:3820

    Moderate: fence-agents security update

    CVE-2024-34064 AlmaLinux Updated 29 October 2026
  • ALSA-2024:4231

    Moderate: python-jinja2 security update

    CVE-2024-34064 AlmaLinux Updated 29 October 2026
  • ALSA-2024:9150

    Moderate: python-jinja2 security update

    CVE-2024-34064 AlmaLinux Updated 29 October 2026
  • AZL-40369

    CVE-2024-34064 affecting package python-jinja2 for versions less than 3.1.2-2

    CVE-2024-34064 Azure Linux Updated 23 November 2026
  • AZL-40420

    CVE-2024-34064 affecting package nodejs for versions less than 20.14.0-1

    CVE-2024-34064 Azure Linux Updated 23 November 2026
  • AZL-40439

    CVE-2024-34064 affecting package python-jinja2 for versions less than 3.0.3-4

    CVE-2024-34064 Azure Linux Updated 21 April 2026
  • AZL-40444

    CVE-2024-34064 affecting package nodejs18 for versions less than 18.20.3-4

    CVE-2024-34064 Azure Linux Updated 21 April 2026
  • AZL-75801

    CVE-2024-34064 affecting package nodejs24 for versions less than 24.13.0-1

    CVE-2024-34064 Azure Linux Updated 2 June 2026
  • CGA-2688-7fh9-3xmp
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-2cr9-425m-p54m
    CVE-2024-34064 ChainguardWolfi Updated 27 October 2026
  • CGA-2gwc-cr5c-8mh6
    CVE-2024-34064 Chainguard Updated 5 November 2026
  • CGA-3xf7-v455-6c2p
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-4829-gg5f-77v2
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-57fv-qmwx-f2rm
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-5g4c-3vgv-mhgr
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-5m74-fwv3-rp4h
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-5vfc-hc4f-f73q
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-675h-6jcc-pgpj
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-7r3c-fwmj-3gvq
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-88r4-396p-hw3p
    CVE-2024-34064 ChainguardWolfi Updated 27 October 2026
  • CGA-9m2w-4h79-fwrf
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-9qg9-x9gf-8g7p
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-c97j-qj88-34gp
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-g5m2-7j99-755w
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-hj27-qmpg-qh9h
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-hq82-37mw-pfpv
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-j8xr-m4gp-3m4r
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-m8w9-66qx-vw6j
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-mw66-62q6-w277
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-pqh3-rpxr-vw63
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-rq64-827c-2fmg
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-v28q-662m-67mm
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-vqf4-w3hq-g2gx
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-vrqx-3v6m-vj36
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-vvv7-x8f6-m2gf
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-w57g-39wh-m5h6
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-w665-h57w-r6rm
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • CGA-x6pw-5g54-7hhj
    CVE-2024-34064 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2024-34064

    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…

    CVE-2024-34064 Debian Updated 2 November 2026
  • DLA-3988-1

    jinja2 - security update

    CVE-2024-22195CVE-2024-34064 Debian Updated 20 November 2026
  • ELSA-2024-3820

    ELSA-2024-3820: fence-agents security update (MODERATE)

    Moderate CVE-2024-34064 Oracle Linux Updated 11 June 2024
  • ELSA-2024-4231

    ELSA-2024-4231: python-jinja2 security update (MODERATE)

    Moderate CVE-2024-34064 Oracle Linux Updated 3 July 2024
  • ELSA-2024-9150

    ELSA-2024-9150: python-jinja2 security update (MODERATE)

    Moderate CVE-2024-34064 Oracle Linux Updated 14 November 2024
  • GHSA-h75v-3vvj-5mfj

    Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter

    Moderate CVE-2024-34064 PyPI Updated 10 September 2026
  • OESA-2024-1605

    python-jinja2 security update

    Medium CVE-2024-34064 openEuler Updated 18 August 2026
  • PYSEC-2026-1474

    Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter

    CVE-2024-34064 PyPI Updated 7 July 2026
  • RHSA-2024:3781

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

    CVE-2023-45288CVE-2023-45290CVE-2023-49083CVE-2023-50447 Red Hat Updated 24 November 2026
  • RHSA-2024:3795

    Red Hat Security Advisory: fence-agents security update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:3811

    Red Hat Security Advisory: fence-agents security update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:3820

    Red Hat Security Advisory: fence-agents security update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:4231

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:4404

    Red Hat Security Advisory: fence-agents bug fix update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:4414

    Red Hat Security Advisory: fence-agents security update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:4427

    Red Hat Security Advisory: fence-agents security update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:4522

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

    CVE-2024-28102CVE-2024-34064CVE-2024-35195 Red Hat Updated 13 November 2026
  • RHSA-2024:4616

    Red Hat Security Advisory: OpenShift Container Platform 4.16.4 packages and security update

    CVE-2024-24788CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:4958

    Red Hat Security Advisory: OpenShift Container Platform 4.15.25 packages and security update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:5662

    Red Hat Security Advisory: Satellite 6.15.3 Security Update

    CVE-2024-24680CVE-2024-27306CVE-2024-27351CVE-2024-28219 Red Hat Updated 13 November 2026
  • RHSA-2024:5810

    Red Hat Security Advisory: OpenShift Container Platform 4.12.64 security update

    CVE-2023-45290CVE-2024-34064CVE-2024-34069 Red Hat Updated 23 November 2026
  • RHSA-2024:6011

    Red Hat Security Advisory: OpenShift Container Platform 4.13.49 packages and security update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2024:9150

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-34064 Red Hat Updated 13 November 2026
  • RHSA-2025:1335

    Red Hat Security Advisory: RHUI 4.11 security, bugfix, and enhancement update

    CVE-2024-1135CVE-2024-26130CVE-2024-27306CVE-2024-30251 Red Hat Updated 24 November 2026
  • RHVEX-CVE-2024-34064

    jinja2: accepts keys containing non-attribute characters

    Moderate CVE-2024-34064 Red Hat Updated 24 November 2026
  • RLSA-2024:3820

    Moderate: fence-agents security update

    CVE-2024-34064 Rocky Linux Updated 4 February 2026
  • RLSA-2024:4231

    Moderate: python-jinja2 security update

    CVE-2024-34064 Rocky Linux Updated 4 February 2026
  • RLSA-2024:9150

    Moderate: python-jinja2 security update

    CVE-2024-34064 Rocky Linux Updated 4 February 2026
  • SUSE-SU-2024:1863-1

    Security update for python-Jinja2

    CVE-2024-22195CVE-2024-34064 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2024:1863-2

    Security update for python-Jinja2

    CVE-2024-22195CVE-2024-34064 SUSE Updated 4 February 2026
  • SUSE-SU-2024:1864-1

    Security update for python-Jinja2

    CVE-2024-22195CVE-2024-34064 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2024:1948-1

    Security update for python-Jinja2

    CVE-2024-34064 SUSE Updated 4 February 2026
  • SUSE-SU-2025:20035-1

    Security update for python-Jinja2

    CVE-2024-22195CVE-2024-34064 SUSE Updated 23 March 2026
  • SUSEVEX-CVE-2024-34064

    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…

    Moderate CVE-2024-34064 SUSE Updated 16 October 2026
  • UBUNTU-CVE-2024-34064

    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…

    CVE-2024-34064 Ubuntu Updated 4 February 2026
  • USN-6787-1

    jinja2 vulnerability

    CVE-2024-34064 Ubuntu Updated 29 June 2026
  • openSUSE-SU-2024:13930-1

    python310-Jinja2-3.1.4-1.1 on GA media

    CVE-2014-0012CVE-2016-10745CVE-2019-10906CVE-2020-28493 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:11992-1

    python313-Jinja2-3.1.6-2.4 on GA media

    CVE-2014-0012CVE-2016-10745CVE-2019-10906CVE-2020-28493 openSUSE Updated 5 October 2026

References