PT-2024-1412 · Jinja2+10 · Jinja2+10

Calumhutton

·

Published

2024-01-10

·

Updated

2026-06-03

·

CVE-2024-22195

CVSS v2.0

6.4

Medium

VectorAV:N/AC:L/Au:N/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions Jinja2 (affected versions not specified)
Description Jinja is an extensible templating engine that allows writing code similar to Python syntax. The Jinja xmlattr filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to Cross-Site Scripting (XSS). It may also be possible to bypass attribute validation checks if they are blacklist-based. The xmlattr filter in affected versions of Jinja accepts keys containing spaces, which can be used to inject other attributes and perform XSS.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2024:2132
ALSA-2024:2348
ALSA-2024:2968
ALSA-2024:2987
ALSA-2024:3102
ALSA-2024_2132
ALSA-2024_2348
ALSA-2024_2968
ALSA-2024_2987
ALSA-2024_3102
ALSA-2025_16880
ALT-PU-2024-1260
ALT-PU-2024-3036
AZL-33320
AZL-33349
AZL-35050
AZL-35134
BDU:2024-00884
CESA-2024_2968
CESA-2024_2987
CESA-2024_3102
CVE-2024-22195
DLA-3715-1
DLA-3988-1
DLA-3988-2
GHSA-H5C8-RQWP-CP95
INFSA-2024_2132
INFSA-2024_2348
INFSA-2024_2968
INFSA-2024_2987
INFSA-2024_3102
MGASA-2024-0199
OESA-2024-1128
OPENSUSE-SU-2024:13581-1
OPENSUSE-SU-2024_1863-1
OPENSUSE-SU-2024_1864-1
RHSA-2024:1057
RHSA-2024:1155
RHSA-2024:1536
RHSA-2024:1640
RHSA-2024:1878
RHSA-2024:2010
RHSA-2024:2132
RHSA-2024:2348
RHSA-2024:2733
RHSA-2024:2968
RHSA-2024:2987
RHSA-2024:3102
RHSA-2024_2132
RHSA-2024_2348
RHSA-2024_2968
RHSA-2024_2987
RHSA-2024_3102
RLSA-2024:2968
RLSA-2024:3102
SUSE-SU-2024:1863-1
SUSE-SU-2024:1863-2
SUSE-SU-2024:1864-1
SUSE-SU-2024_1863-1
SUSE-SU-2025:20035-1
USN-6599-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Jinja2
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu