CVE-2024-22195CWE-79

Jinja vulnerable to Cross-Site Scripting (XSS)

Medium · published January 11, 2024

CVSS v3.1
5.4
EPSS
1%
Percentile
59.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.4 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00892 · 59.0th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2024-01-11T02:25Z
EPSS history
Timeline
  • 11 JAN 02:25Z
    Jinja vulnerable to Cross-Site Scripting (XSS)
    cvelistv5