CVE-2024-34078

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

Published May 6, 2024 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3856-1 python-html-sanitizer security update
EUVD EUVD EUVD-2024-1840 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.
Github GHSA Github GHSA GHSA-wvhx-q427-fgh3 Arbitrary HTML present after sanitization because of unicode normalization

Subscriptions

No data.

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 26, 2024, 6:03 PM
Reserved
Apr 30, 2024, 6:56 AM
Status
Deferred
Published
May 6, 2024, 3:15 PM
Modified
Jun 17, 2026, 7:32 AM