Impact
justhtml versions before 1.10.0 contain an uncontrolled recursion flaw that can be triggered by parsing HTML with deep nesting. During construction, the parser repeatedly calls internal functions without a depth limit, causing a RecursionError when CPython's recursion limit is exceeded. This error can abort parsing, cause failed requests, or crash a worker or process depending on how the application handles the exception, effectively denying service. The vulnerability is an instance of CWE-674: Uncontrolled Recursion.
Affected Systems
The vulnerability affects EmilStenstrom's justhtml library, specifically all releases up to and including 1.9.1. The issue is fixed in justhtml 1.10.0. Applications that incorporate earlier versions of this library and accept user supplied HTML are potentially impacted.
Risk and Exploitability
The CVSS score of 8.7 indicates a high severity. EPSS is not available, so the probability of exploitation is not quantified, but the flaw is in a widely used parsing routine and can be triggered by any supplied HTML. The vulnerability is not listed in CISA KEV. Attackers can feasibly exploit the issue by providing maliciously nested HTML, making it an obvious target for denial‑of‑service attacks in environments where justhtml parses untrusted content.
OpenCVE Enrichment
Github GHSA