CVE-2024-22195
MEDIUM5.4EPSS 0.15%Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
發布日:2024/1/11修改日:2026/4/28
描述
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.
受影響套件(5)
- Alpine/py3-jinja2from 0, < 3.1.4-r0
- Debian/jinja2from 0, < 2.11.3-1+deb11u1
- Debian/jinja2from 0, < 2.10-2+deb10u1
- Debian/jinja2from 0, < 2.11.3-1+deb11u1
- PyPI/jinja2from 0, < 3.1.3
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
參考連結(12)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-22195
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2024-22195
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-22195
- PATCHhttps://github.com/pallets/jinja
- WEBhttps://github.com/pallets/jinja/commit/716795349a41d4983a9a4771f7d883c96ea17be7
- WEBhttps://github.com/pallets/jinja/releases/tag/3.1.3
- WEBhttps://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95
- WEBhttps://lists.debian.org/debian-lts-announce/2024/01/msg00010.html
- WEBhttps://lists.debian.org/debian-lts-announce/2024/12/msg00009.html
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/5XCWZD464AJJJUBOO7CMPXQ4ROBC6JX2
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/DELCVUUYX75I5K4Q5WMJG4MUZJA6VAIP
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/O7YWRBX6JQCWC2XXCTZ55C7DPMGICCN3