CVE Feed
4.7 Medium

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
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

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
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-141555