Cross-site Scripting Affecting html-sanitizer package, versions [,2.4.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-HTMLSANITIZER-6810223
  • published7 May 2024
  • disclosed6 May 2024
  • creditYoric Züger

Introduced: 6 May 2024

CVE-2024-34078  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade html-sanitizer to version 2.4.2 or higher.

Overview

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.

References

CVSS Scores

version 3.1