CVE-2024-34078 · MEDIUM (CVSS 6.1)
Summary: html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization
Details
html-sanitizer is an allowlist-based HTML cleaner. If using `keep_typographic_whitespace=False` (which is the default), the sanitizer normalizes unicode to the NFKC form at the end. Some unicode characters normalize to chevrons; this allows specially crafted HTML to escape sanitization. The problem has been fixed in 2.4.2.
Severity
MEDIUM (CVSS 6.1) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected packages
- PyPI html-sanitizer [0 – 2.4.2]
- GIT github.com/feincms/html-sanitizer [0 – 024004d53f8322548ed98fbe640759667dc6fc64] [0 – 48db42fc5143d0140c32d929c46b802f96913550]
References
- https://lists.debian.org/debian-lts-announce/2024/08/msg00000.html
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/34xxx/CVE-2024-34078.json
- https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3
- https://nvd.nist.gov/vuln/detail/CVE-2024-34078
- https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550