Infinite loop Affecting justhtml package, versions [,1.17.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 IDSNYK-PYTHON-JUSTHTML-16318347
  • published28 Apr 2026
  • disclosed22 Apr 2026
  • creditUnknown

Introduced: 22 Apr 2026

New CVE NOT AVAILABLE CWE-436  (opens in a new tab)
CWE-471  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade justhtml to version 1.17.0 or higher.

Overview

justhtml is an A pure Python HTML5 parser that just works.

Affected versions of this package are vulnerable to Infinite loop via custom sanitization policies or programmatic DOM manipulation. An attacker can inject and execute arbitrary scripts, cause resource loading, or trigger external fetches by crafting malicious SVG, MathML, or CSS content that bypasses sanitization.

Note: This is only exploitable if custom policies preserve SVG, MathML, or

CVSS Base Scores

version 4.0
version 3.1