CVE-2026-141555: lxml-html-clean: Cleaner(comments=False) keeps a comment that closes <noscript> in the browser, which allows XSS
Vulnerability summary
CVE-2026-141555 is a medium (CVSS 4.7) vulnerability in fedora-python lxml_html_clean. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 43.4% of scored vulnerabilities.
Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 02-12-2026PublishedVulnerability first disclosed.
- 02-12-2026Last modifiedVulnerability information updated.
Description
lxml-html-clean is an HTML cleaning library for Python. Prior to 0.4.7, Cleaner in lxml_html_clean/clean.py configured with comments=False uses kill_conditional_comments to remove conditional comments but retains other comments inside noscript. libxml2 parses the noscript content as markup and retains the comment as a node, while a browser with scripting enabled treats the content as raw text. A closing noscript tag inside a retained comment can terminate the element in the browser, causing following attacker-controlled markup to execute when cleaned HTML is rendered, without a click. The default Cleaner removes all comments, and the same comment outside noscript remains inert. An earlier check for a noscript closing tag applies to style text rather than retained comments. This issue is fixed in 0.4.7.
CVSS metrics
3 scores · 3 sources · 1 version- NVDNIST4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · PypiEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.48%
Chance of exploitation in the next 30 days
Percentile
43%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard1 product
- label-studioAll versions (No fix recorded)
Fedora-python1 product
- lxml_html_clean< 0.4.7
PyPI1 product
- lxml-html-clean< 0.4.7
3 vendors · 3 products
References
5 links- github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-vfhw-gfwp-vxfjX Refsource CONFIRMWEB