{"id":"CVE-2026-9769","published":"2026-08-23T13:34:15Z","modified":"2026-08-24T17:54:01Z","title":"justhtml before 1.10.0 Denial of Service via deeply nested HTML","vendor":"EmilStenstrom","product":"justhtml","tier":"tail","description":{"text":"justhtml through 1.9.1 (fixed in 1.10.0) is vulnerable to uncontrolled recursion leading to denial of service. During JustHTML() construction, TreeBuilder.finish() unconditionally calls _populate_selectedcontent(), which recursively traverses the DOM tree via _find_elements()/_find_element() without a depth bound. An attacker who can supply HTML for parsing can provide deeply nested elements (e.g., ~1000 nested <div> tags, roughly 11 KB) to exceed CPython's default recursion limit and trigger an unhandled RecursionError, which may abort parsing, fail requests, or terminate a worker/process depending on the host application's exception handling.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00337,"percentile":0.27748,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-v7cf-c9rm-wm3j","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/justhtml-before-denial-of-service-via-deeply-nested-html","tags":["third-party-advisory"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":5.55},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"emilstenstrom","affectedVersions":[{"vendor":"EmilStenstrom","product":"justhtml","versions":["< 1.10.0"]}],"fixedVersions":[{"vendor":"EmilStenstrom","product":"justhtml","versions":["1.10.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-24T17:53:32.041480Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"justhtml","vulnerableRanges":["<1.10.0"],"patched":["1.10.0"],"from":["GHSA-v7cf-c9rm-wm3j","PYSEC-2026-3854"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-64661","exploited":false,"provenance":"source"}}