Skip to content

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

MediumCVSS 6.1 EPSS 0.56%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

5 packages: 2 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/python-html-sanitizer(Ubuntu 22.04) = 1.9.1-2; = 1.9.3-1; All versions No fix listed No fix yet
ubuntu/python-html-sanitizer(Ubuntu 24.04) = 2.2-1; All versions No fix listed No fix yet
debian/python-html-sanitizer(Debian 11) < 1.9.1-2+deb11u1; = 1.9.1-2 1.9.1-2+deb11u1 Fixed
pypi html-sanitizer(PyPI) < 2.4.2; = 1.0.0; = 1.1.0; = 1.1.1 +29 more 2.4.2 Fixed
matthiask html-sanitizer = < 2.4.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi html-sanitizer(PyPI) < 2.4.2 2.4.2
pypi html-sanitizer(PyPI) = 1.0.0 No fix listed
pypi html-sanitizer(PyPI) = 1.1.0 No fix listed
pypi html-sanitizer(PyPI) = 1.1.1 No fix listed
pypi html-sanitizer(PyPI) = 1.1.2 No fix listed
pypi html-sanitizer(PyPI) = 1.1.3 No fix listed
pypi html-sanitizer(PyPI) = 1.1.4 No fix listed
pypi html-sanitizer(PyPI) = 1.2.0 No fix listed
pypi html-sanitizer(PyPI) = 1.2.1 No fix listed
pypi html-sanitizer(PyPI) = 1.3.0 No fix listed
pypi html-sanitizer(PyPI) = 1.4.0 No fix listed
pypi html-sanitizer(PyPI) = 1.5.0 No fix listed
pypi html-sanitizer(PyPI) = 1.6.0 No fix listed
pypi html-sanitizer(PyPI) = 1.6.1 No fix listed
pypi html-sanitizer(PyPI) = 1.6.2 No fix listed
pypi html-sanitizer(PyPI) = 1.6.3 No fix listed
pypi html-sanitizer(PyPI) = 1.6.4 No fix listed
pypi html-sanitizer(PyPI) = 1.7.0 No fix listed
pypi html-sanitizer(PyPI) = 1.7.1 No fix listed
pypi html-sanitizer(PyPI) = 1.7.2 No fix listed
pypi html-sanitizer(PyPI) = 1.7.3 No fix listed
pypi html-sanitizer(PyPI) = 1.8.0 No fix listed
pypi html-sanitizer(PyPI) = 1.9.0 No fix listed
pypi html-sanitizer(PyPI) = 1.9.1 No fix listed
pypi html-sanitizer(PyPI) = 1.9.2 No fix listed
Show 16 more
ProductAffected versionsFixed in
pypi html-sanitizer(PyPI) = 1.9.3 No fix listed
pypi html-sanitizer(PyPI) = 2.0.0 No fix listed
pypi html-sanitizer(PyPI) = 2.1.0 No fix listed
pypi html-sanitizer(PyPI) = 2.2.0 No fix listed
pypi html-sanitizer(PyPI) = 2.3.0 No fix listed
pypi html-sanitizer(PyPI) = 2.3.1 No fix listed
pypi html-sanitizer(PyPI) = 2.4.0 No fix listed
pypi html-sanitizer(PyPI) = 2.4.1 No fix listed
debian/python-html-sanitizer(Debian:11) < 1.9.1-2+deb11u1 1.9.1-2+deb11u1
debian/python-html-sanitizer(Debian:11) = 1.9.1-2 No fix listed
ubuntu/python-html-sanitizer(Ubuntu:22.04) All versions No fix listed
matthiask html-sanitizer = < 2.4.2 No fix listed
ubuntu/python-html-sanitizer(Ubuntu:24.04) All versions No fix listed
ubuntu/python-html-sanitizer(Ubuntu:22.04) = 1.9.1-2 No fix listed
ubuntu/python-html-sanitizer(Ubuntu:22.04) = 1.9.3-1 No fix listed
ubuntu/python-html-sanitizer(Ubuntu:24.04) = 2.2-1 No fix listed

References