XSS in Matthiask Html-Sanitizer
CVE-2024-34078
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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.006 (43.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
Affected products
- Matthiask Html-sanitizer — versions < 2.4.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM)
- security-advisories@github.com (x_refsource_MISC)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2024-34078?
- CVE-2024-34078 is a medium-severity vulnerability in Matthiask Html-Sanitizer, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2024-05-06.
- How severe is CVE-2024-34078?
- Medium severity. CVSS v3 base score is 6.1 out of 10.
- Is CVE-2024-34078 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.