cve.bz

CVE-2024-22195

6.1 mediumEPSS 0.9%

Medium (6.1) in palletsprojects jinja. EPSS 0.9% chance of exploitation in the next 30 days. Fixed in jinja2 3.1.3.

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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.9% chance of exploitation in the next 30 days; higher than 59% of CVEs (scores of 2026-10-31)
CWE
CWE-79
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h5c8-rqwp-cp95PyPIjinja2<3.1.33.1.3
PYSEC-2026-1473PyPIjinja2<3.1.33.1.3

References

Check your stackJSON