CVE-2024-34078
MEDIUM 6.1CVSS 3.1Arbitrary HTML present after sanitization because of unicode normalization
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.
- Published
- 6 May 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-wvhx-q427-fgh3PYSEC-2026-1455
- Sources
- NVDJSONOSV GHSA-wvhx-q427-fgh3JSONOSV PYSEC-2026-1455JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | html-sanitizer | < 2.4.2 | 2.4.2 |
References
- https://github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550 · WEB
- https://github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3 · WEB
- https://lists.debian.org/debian-lts-announce/2024/08/msg00000.html
- https://github.com/matthiask/html-sanitizer · PACKAGE
- https://pypi.org/project/html-sanitizer · PACKAGE
- https://github.com/advisories/GHSA-wvhx-q427-fgh3 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-34078 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 6 May 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 May 2024)