CVE-2024-22195

MEDIUMCVSS 6.1/10EPSS 0.89%

Last modified

CVE-2024-22195 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. EPSS estimates a 0.89% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
6.1/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS Probability
0.89%

54.8th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PalletsprojectsJinja< 3.1.3

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2024-22195?
CVE-2024-22195 has a CVSS score of 6.1/10 (MEDIUM severity). The EPSS model estimates a 0.89% probability of exploitation in the next 30 days.
How do I fix CVE-2024-22195?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-22195?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST