Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. html-sanitizer
  4. ›
  5. CVE-2024-34078

CVE-2024-34078: Arbitrary HTML present after sanitization because of unicode normalization

May 6, 2024

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.

References

  • github.com/advisories/GHSA-wvhx-q427-fgh3
  • github.com/matthiask/html-sanitizer
  • github.com/matthiask/html-sanitizer/commit/48db42fc5143d0140c32d929c46b802f96913550
  • github.com/matthiask/html-sanitizer/security/advisories/GHSA-wvhx-q427-fgh3
  • nvd.nist.gov/vuln/detail/CVE-2024-34078

Code Behaviors & Features

Detect and mitigate CVE-2024-34078 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.4.2

Fixed versions

  • 2.4.2

Solution

Upgrade to version 2.4.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Source file

pypi/html-sanitizer/CVE-2024-34078.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:32 +0000.