Skip to main content
← All vulnerabilities
CVE-2024-34078GHSA-WVHX-Q427-FGH3PYSEC-2026-1455

html-sanitizer allows arbitrary HTML present after sanitization because of unicode normalization

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.4.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • matthiask html-sanitizer

    fixed in 2.4.2

  • html-sanitizerPyPI

    fixed in 2.4.2

References 2

GitHub · matthiask/html-sanitizer