Vulnerability
CVE-2024-22195
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially leading to Cross-Site Scripting (XSS). The Jinja `xmlattr` filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to XSS. It may also be possible to bypass attribute validation checks if they are blacklist-based.
79 advisories report this vulnerability, across 15 ecosystems.
Advisories
-
ALAS2-2024-2436
Amazon Linux 2 2017.12 - ALAS2-2024-2436: medium priority package update for python-jinja2
-
ALAS2-2024-2437
Amazon Linux 2 2017.12 - ALAS2-2024-2437: medium priority package update for python3-jinja2
-
ALAS2023-2024-503
Amazon Linux 2023 - ALAS2023-2024-503: Medium priority package update for python-jinja2
-
ALPINE-CVE-2024-22195
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially…
- ALPINE-EDGE-CVE-2024-22195
-
ALSA-2024:2132
Moderate: fence-agents security and bug fix update
-
ALSA-2024:2348
Moderate: python-jinja2 security update
-
ALSA-2024:2968
Moderate: fence-agents security and bug fix update
-
ALSA-2024:2987
Moderate: python27:2.7 security update
-
ALSA-2024:3102
Moderate: python-jinja2 security update
-
AZL-33320
CVE-2024-22195 affecting package python-jinja2 for versions less than 3.0.3-3
-
AZL-33349
CVE-2024-22195 affecting package nodejs18 for versions less than 18.20.3-3
-
AZL-35050
CVE-2024-22195 affecting package nodejs for versions less than 20.14.0-1
-
AZL-35134
CVE-2024-22195 affecting package python-jinja2 for versions less than 3.1.2-2
- CGA-26mm-653v-3h6r
- CGA-2v5c-3w6j-4xpc
- CGA-3cgq-9346-r89x
- CGA-4wf7-24h2-38q3
- CGA-5757-4cwp-fvh8
- CGA-79hg-gfjw-q33q
- CGA-8r95-fp34-xpm4
- CGA-9cwr-jmp2-8f64
- CGA-c8qp-x78q-9j9w
- CGA-cp4f-grmc-88mx
- CGA-cvc2-xj2j-pp45
- CGA-cwjw-p576-w47h
- CGA-gjr2-qj2p-fph3
- CGA-h85w-mc4p-hxjx
- CGA-hxr8-fjpr-j6x9
- CGA-jcxp-m72p-5q7f
- CGA-ww9v-4238-vfqj
-
DEBIAN-CVE-2024-22195
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially…
-
DLA-3715-1
jinja2 - security update
-
DLA-3988-1
jinja2 - security update
-
ELSA-2024-2132
ELSA-2024-2132: fence-agents security and bug fix update (MODERATE)
-
ELSA-2024-2348
ELSA-2024-2348: python-jinja2 security update (MODERATE)
-
ELSA-2024-2968
ELSA-2024-2968: fence-agents security and bug fix update (MODERATE)
-
ELSA-2024-2987
ELSA-2024-2987: python27:2.7 security update (MODERATE)
-
ELSA-2024-3102
ELSA-2024-3102: python-jinja2 security update (MODERATE)
-
GHSA-h5c8-rqwp-cp95
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
-
OESA-2024-1128
python-jinja2 security update
-
PYSEC-2026-1473
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
-
RHBA-2024:0891
Red Hat Bug Fix Advisory: fence-agents update
-
RHBA-2024:1091
Red Hat Bug Fix Advisory: fence-agents bug fix update
-
RHBA-2024:1114
Red Hat Bug Fix Advisory: fence-agents bug fix update
-
RHBA-2024:1137
Red Hat Bug Fix Advisory: fence-agents bug fix update
-
RHBA-2024:1398
Red Hat Bug Fix Advisory: fence-agents update
-
RHBA-2024:1416
Red Hat Bug Fix Advisory: fence-agents update
-
RHSA-2024:1057
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
-
RHSA-2024:1155
Red Hat Security Advisory: fence-agents security update
-
RHSA-2024:1536
Red Hat Security Advisory: Satellite 6.14.3 Async Security Update
-
RHSA-2024:1640
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
-
RHSA-2024:1878
Red Hat Security Advisory: RHUI 4.8 Release - Security Updates, Bug Fixes, and Enhancements
-
RHSA-2024:2010
Red Hat Security Advisory: Satellite 6.15.0 release
-
RHSA-2024:2132
Red Hat Security Advisory: fence-agents security and bug fix update
-
RHSA-2024:2348
Red Hat Security Advisory: python-jinja2 security update
-
RHSA-2024:2733
Red Hat Security Advisory: Red Hat OpenStack Platform 17.1 (openstack-ansible-core) security update
-
RHSA-2024:2968
Red Hat Security Advisory: fence-agents security and bug fix update
-
RHSA-2024:2987
Red Hat Security Advisory: python27:2.7 security update
-
RHSA-2024:3102
Red Hat Security Advisory: python-jinja2 security update
-
RHVEX-CVE-2024-22195
jinja2: HTML attribute injection when passing user input as keys to xmlattr filter
-
RLSA-2024:2968
Moderate: fence-agents security and bug fix update
-
RLSA-2024:2987
Moderate: python27:2.7 security update
-
RLSA-2024:3102
Moderate: python-jinja2 security update
-
SUSE-SU-2024:1863-1
Security update for python-Jinja2
-
SUSE-SU-2024:1863-2
Security update for python-Jinja2
-
SUSE-SU-2024:1864-1
Security update for python-Jinja2
-
SUSE-SU-2025:20035-1
Security update for python-Jinja2
-
SUSE-SU-2026:4580-1
Security update 5.2.1 for Multi-Linux Manager Client Tools
-
SUSE-SU-2026:4581-1
Security update 5.2.1 for Multi-Linux Manager Client Tools
-
SUSE-SU-2026:4582-1
Security update 5.2.1 for Multi-Linux Manager Client Tools
-
SUSE-SU-2026:4583-1
Security update 5.2.1 for Multi-Linux Manager Client Tools
-
SUSE-SU-2026:4584-1
Security update 5.2.1 for Multi-Linux Manager Client Tools
-
SUSE-SU-2026:4585-1
Security update 5.2.1 for Multi-Linux Manager Client Tools
-
SUSEVEX-CVE-2024-22195
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially…
-
UBUNTU-CVE-2024-22195
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially…
-
USN-6599-1
jinja2 vulnerabilities
-
openSUSE-SU-2024:13581-1
python310-Jinja2-3.1.3-1.1 on GA media
-
openSUSE-SU-2026:11992-1
python313-Jinja2-3.1.6-2.4 on GA media
References
- https://github.com/pallets/jinja/releases/tag/3.1.3
- https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95
- https://lists.debian.org/debian-lts-announce/2024/01/msg00010.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5XCWZD464AJJJUBOO7CMPXQ4ROBC6JX2/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/DELCVUUYX75I5K4Q5WMJG4MUZJA6VAIP/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/O7YWRBX6JQCWC2XXCTZ55C7DPMGICCN3/
- https://lists.debian.org/debian-lts-announce/2024/12/msg00009.html