Skip to main content
VulnerabilityPublished Updated

CVE-2024-34078: Python html sanitizer · html-sanitizer is an allowlist-based HTML cleaner

Affects python-html-sanitizerSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.1 Medium · fixed in 2.4.2 : update python-html-sanitizer when convenient.

Data as of 24 Nov 2026, 19:26 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.4.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 May 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSpython-html-sanitizerpkg:deb/ubuntu/python-html-sanitizer?arch=source&distro=nobleOther threatsAffected
  • =2.2-1
Fixed in–
Ubuntu 22.04 LTSpython-html-sanitizerpkg:deb/ubuntu/python-html-sanitizer?arch=source&distro=jammyOther threatsAffected
  • =1.9.1-2
  • =1.9.3-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…