Debian Bug report logs -
#1060748
jinja2: CVE-2024-22195: HTML attribute injection when passing user input as keys to xmlattr filter
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, carnil@debian.org, team@security.debian.org, Piotr Ożarowski <piotr@debian.org>
:
Bug#1060748
; Package src:jinja2
.
(Sat, 13 Jan 2024 16:27:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Salvatore Bonaccorso <carnil@debian.org>
:
New Bug report received and forwarded. Copy sent to carnil@debian.org, team@security.debian.org, Piotr Ożarowski <piotr@debian.org>
.
(Sat, 13 Jan 2024 16:27:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Source: jinja2
Version: 3.1.2-1
Severity: important
Tags: security upstream
X-Debbugs-Cc: carnil@debian.org, Debian Security Team <team@security.debian.org>
Hi,
The following vulnerability was published for jinja2.
CVE-2024-22195[0]:
| 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.
If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.
For further information see:
[0] https://security-tracker.debian.org/tracker/CVE-2024-22195
https://www.cve.org/CVERecord?id=CVE-2024-22195
[1] https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95
[2] https://github.com/pallets/jinja/commit/7dd3680e6eea0d77fde024763657aa4d884ddb23
Please adjust the affected versions in the BTS as needed.
Regards,
Salvatore
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 14 08:20:34 2024;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.