ADVISORIES

Vulnerability

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.

5 advisories report this vulnerability, across 3 ecosystems.

Medium severity All Debian 2PyPI 2Ubuntu 1

Advisories

  • DEBIAN-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…

    CVE-2024-34078 Debian Updated 24 November 2026
  • DLA-3856-1

    python-html-sanitizer - security update

    CVE-2024-34078 Debian Updated 20 November 2026
  • GHSA-wvhx-q427-fgh3

    Arbitrary HTML present after sanitization because of unicode normalization

    High CVE-2024-34078 PyPI Updated 10 September 2026
  • PYSEC-2026-1455

    Arbitrary HTML present after sanitization because of unicode normalization

    CVE-2024-34078 PyPI Updated 7 July 2026
  • UBUNTU-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…

    CVE-2024-34078 Ubuntu Updated 8 September 2025

References