kimi-cli · lxml_html_clean: Cleaner(comments=False) keeps a comment that closes <noscript> in the browser, which allows XSS
Affects kimi-cliSource GCVE Database
Not known to be exploited · CVSS 4.7 Medium : upgrade to 0.4.7 when convenient.
Data as of 4 Dec 2026, 18:37 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 4.7 |
|---|
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.4.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade lxml-html-clean to 0.4.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewkimi-clipkg:brew/kimi-cliOther threats | Affected
| Fixed in– |
PyPIlxml-html-cleanpkg:pypi/lxml-html-cleanOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The suggested fix involves modifying the Cleaner to remove comments that contain closing tags of ancestor elements, preventing the XSS payload. If you cannot patch yet, users should avoid using Cleaner with comments=False or sanitize input differently. Since this is a library vulnerability, users should update to fixed versions once released.
Description
The lxml_html_clean library's Cleaner with comments disabled (comments=False) does not remove certain comments inside <noscript> tags. Because libxml2 parses <noscript> content as markup, a crafted comment like <!--</noscript><img src=x onerror=...>--> is preserved and interpreted by browsers as live HTML, enabling cross-site scripting (XSS) without user interaction. The default Cleaner configuration is not affected as it removes all comments. This issue affects lxml_html_clean versions starting from 0.40.
References
- github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-vfhw-gfwp-vxfj (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-141555 (opens in a new tab)
- github.com/fedora-python/lxml_html_clean/commit/c83f0befb32505782858f56a17ac572fbf979f62 (opens in a new tab)
- github.com/fedora-python/lxml_html_clean (opens in a new tab)
- github.com/fedora-python/lxml_html_clean/releases/tag/0.4.7 (opens in a new tab)