Shellfeed logo Shellfeed

CVE-2024-34078 · MEDIUM (CVSS 6.1)

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

Details

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.

Severity

MEDIUM (CVSS 6.1) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

  • PyPI html-sanitizer [0 – 2.4.2]
  • GIT github.com/feincms/html-sanitizer [0 – 024004d53f8322548ed98fbe640759667dc6fc64] [0 – 48db42fc5143d0140c32d929c46b802f96913550]

References