CVE-2024-22195

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-22195
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-22195.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-22195
Aliases
Downstream
Related
Published
2024-01-11T02:25:44Z
Modified
2025-10-08T23:09:02.492370Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Jinja vulnerable to Cross-Site Scripting (XSS)
Details

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.

References

Affected packages

Git / github.com/pallets/jinja

Affected ranges

Type
GIT
Repo
https://github.com/pallets/jinja
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

2.*

2.0
2.0rc1
2.1
2.1.1
2.10
2.10.1
2.10.2
2.10.3
2.10.x
2.11.0
2.11.1
2.11.2
2.11.3
2.11.x
2.2
2.2.1
2.3
2.3.1
2.4
2.4.1
2.5
2.5.1
2.5.3
2.5.4
2.5.5
2.6
2.7
2.7.1
2.7.2
2.7.3
2.8
2.8.1
2.9
2.9.1
2.9.2
2.9.3
2.9.4
2.9.5
2.9.6
2.9.x

3.*

3.0.0
3.0.0a1
3.0.0rc1
3.0.0rc2
3.0.1
3.0.2
3.0.3
3.0.x
3.1.0
3.1.1
3.1.2