CVE-2024-22195 MEDIUM

CVE-2024-22195: Jinja vulnerable to Cross-Site Scripting (XSS)

Vendor Pallets
Product jinja
Weakness CWE-79 · XSS
Published January 11, 2024
Last update November 3, 2025

CVSS base score

5.4/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

January 11, 2024 CVE published
November 3, 2025 Record updated