lxml_html_clean: Cleaner(comments=False) keeps a comment that closes <noscript> in the browser, which allows XSS
CVE-2026-141555
Summary With comments=False, the Cleaner removes only IE conditional comments (lxmlhtmlclean/clean.py:363-366, killconditionalcomments at 599-607) and keeps every other comment (421-422, 511-513). libxml2 parses the content of as markup, so --> is a single comment node and is returned unchanged. A browser with scripting enabled treats as raw text, closes it at the first , and parses the rest as live markup. The handler runs when the cleaned output is rendered in a page, with no click. The default Cleaner() is not affected, because it removes all comments. The same comment outside stays an inert comment in the browser. This is the parser difference from GHSA-5jfw-gq64-q45f. The text only. Tested on lxmlhtmlclean 0.4.6 from PyPI (same commit as main), lxml 6.1.3, libxml2 2.14.6, Python 3.12.16, Chromium 159.0.8154.13 headless, with no network. The output is byte-identical on 0.1.0, 0.2.0, 0.4.0, 0.4.4 (lxml 5.1.0, libxml2 2.12.3) and 0.4.5. Reproduction python from lxmlhtmlclean import Cleaner P = ''' --> ''' print(Cleaner(comments=False).cleanhtml(P)) print(Cleaner().cleanhtml(P)) text [A1] claim: comment in noscript, comments=False out: --> [A2] same input, default Cleaner() out:…
Assessment
- CVSS
- 4.7 (v3.1)
- Severity
- Medium
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 3 December 2026
- Last updated
- 3 December 2026
- Affected
- fedora-python · lxml_html_clean · lxml-html-clean
- Weakness
- CWE-79
- Assigner
- GitHub_M
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
At the source
References
- https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-vfhw-gfwp-vxfj
- https://nvd.nist.gov/vuln/detail/CVE-2026-141555
- https://github.com/fedora-python/lxml_html_clean/commit/c83f0befb32505782858f56a17ac572fbf979f62
- https://github.com/fedora-python/lxml_html_clean/releases/tag/0.4.7
- https://github.com/advisories/GHSA-vfhw-gfwp-vxfj
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-141555