html-sanitizer@1.6.2 vulnerabilities

HTML sanitizer

Direct Vulnerabilities

Known vulnerabilities in the html-sanitizer package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting

html-sanitizer is a HTML sanitizer

Affected versions of this package are vulnerable to Cross-site Scripting due to using keep_typographic_whitespace=False parameter. An attacker can bypass the sanitization process by crafting HTML that exploits unicode characters which normalize to chevrons.

How to fix Cross-site Scripting?

Upgrade html-sanitizer to version 2.4.2 or higher.

[,2.4.2)