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.
Cross-site Scripting
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
5.4 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
GitHub_MCNA
5.4 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 21%
VendorProductVersion
palletsprojectsjinja
𝑥
< 3.1.3
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
jinja2
bullseye
vulnerable
bullseye (security)
2.11.3-1+deb11u4
fixed
bookworm
3.1.2-1+deb12u2
fixed
sid
3.1.6-1
fixed
trixie
3.1.6-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
jinja2
plucky
Fixed 3.1.2-1ubuntu1
released
oracular
Fixed 3.1.2-1ubuntu1
released
noble
Fixed 3.1.2-1ubuntu1
released
mantic
Fixed 3.1.2-1ubuntu0.23.10.1
released
lunar
ignored
jammy
Fixed 3.0.3-1ubuntu0.1
released
focal
Fixed 2.10.1-2ubuntu0.2
released
bionic
Fixed 2.10-1ubuntu0.18.04.1+esm1
released
xenial
Fixed 2.8-1ubuntu0.1+esm2
released
trusty
Fixed 2.7.2-2ubuntu0.1~esm2
released