Intel

AIKIDO-2024-10553

html-sanitizer is vulnerable to Improper Input Validation

Improper Input Validation Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

46

Medium Risk

This Affects:

pythonhtml-sanitizer
1.0.0 - 2.4.1
Fixed in 2.4.2

TL;DR

Affected versions of this package use sanitization methods that delay Unicode normalization, which allows specially crafted HTML to bypass the validation for disallowed tags. An attacker could exploit this design flaw to carry out attacks such as Cross-Site Scripting (XSS) or other injection-based vulnerabilities.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

html-sanitizer is vulnerable to Improper Input Validation in versions 1.0.0 - 2.4.1.

How to fix this

Upgrade the html-sanitizer library to the patch version.