CVEvulnerability
CVE-2024-22195
6.1 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2024-01-11
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.4 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- CVSS 3.1 ([email protected])
- 6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
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.
Affected configurations
• palletsprojects jinja (< 3.1.3)
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/pallets/jinja/releases/tag/3.1.3 Release Notes
- https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95 Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/01/msg00010.html lists.debian.org
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5XCWZD464AJJJUBOO7CMPXQ4ROBC6JX2/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/[email protected]/message/DELCVUUYX75I5K4Q5WMJG4MUZJA6VAIP/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/[email protected]/message/O7YWRBX6JQCWC2XXCTZ55C7DPMGICCN3/ lists.fedoraproject.org
- https://github.com/pallets/jinja/releases/tag/3.1.3 Release Notes
- https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95 Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/01/msg00010.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/12/msg00009.html lists.debian.org
- https://lists.fedoraproject.org/archives/list/[email protected]/message/5XCWZD464AJJJUBOO7CMPXQ4ROBC6JX2/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/[email protected]/message/DELCVUUYX75I5K4Q5WMJG4MUZJA6VAIP/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/[email protected]/message/O7YWRBX6JQCWC2XXCTZ55C7DPMGICCN3/ lists.fedoraproject.org