CVE-2024-34078
published medium CVSS 3.1 · 6.1html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| matthiask | — | html-sanitizer< 2.4.2 | Affected | Not stated | GitHub_M |
| Debian | bullseye | python-html-sanitizer | Advisory build | 1.9.1-2+deb11u1 | DLA-3856-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| matthiask | html-sanitizer | < 2.4.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
3Provider assertions
3GitHub_M · cna
html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 142f04fdca6423013e21ecdb9ef67f7d703e34805abda1aa997aa63ed4a91531
- Ingested
- 23 Sep 2026, 08:23:23 UTC
- Source record
- Official CVE record