Skip to main content
CVE-2026-141555VulnerabilityPublished

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

0
Compare
Authoritative record:CVE-2026-141555· Medium 4.7

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

CVSS 3.1 base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.14.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewkimi-clipkg:brew/kimi-cliOther threatsAffected
  • >=0.40
Fixed in–
PyPIlxml-html-cleanpkg:pypi/lxml-html-cleanOther threatsAffected
  • <0.4.7
Fixed in
  • 0.4.7

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

Community reviews

Loading reviews…