# CVE-2026-141555: lxml-html-clean: Cleaner(comments=False) keeps a comment that closes \<noscript\> in the browser, which allows XSS

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-02
- Aliases: GHSA-vfhw-gfwp-vxfj, CGA-42xj-jgvj-6p5x, CGA-fjwr-hpmh-qqpw
- Record: https://cvemate.com/vulnerability/CVE-2026-141555 · JSON: https://cvemate.com/vulnerability/CVE-2026-141555/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.485%, percentile 43.437%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard label-studio (Chainguard): All versions (No fix recorded)
- fedora-python lxml\_html\_clean: \< 0.4.7
- PyPI lxml-html-clean (PyPI): \< 0.4.7

## References

- <https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-vfhw-gfwp-vxfj>
- <https://github.com/fedora-python/lxml_html_clean/commit/c83f0befb32505782858f56a17ac572fbf979f62>
- <https://github.com/fedora-python/lxml_html_clean/releases/tag/0.4.7>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-141555>
- <https://github.com/fedora-python/lxml_html_clean>

---

Data as of 2026-12-05T06:29:18.707Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
