CVE-2024-22195

5.4 MEDIUM
Published: January 11, 2024 Modified: November 03, 2025

Description

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/pallets/jinja/releases/tag/3.1.3
Source: security-advisories@github.com
Release Notes
https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95
Source: security-advisories@github.com
Third Party Advisory
https://github.com/pallets/jinja/releases/tag/3.1.3
Source: af854a3a-2127-422b-91ae-364da2661108
Release Notes
https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory

13 reference(s) from NVD

Quick Stats

CVSS v3 Score
5.4 / 10.0
EPSS (Exploit Probability)
0.1%
30th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

palletsprojects