CVE Professor
/
All CVEs
CVE-2026-141555

CVE-2026-141555 — Lxml-html-clean — CWE-79

MEDIUM CVSS 4.7 ⚡ EPSS 0.5% GitHub

## Summary With `comments=False`, the Cleaner removes only IE conditional comments (`lxml_html_clean/clean.py:363-366`, `kill_conditional_comments` at `599-607`) and keeps every other comment (`421-422`, `511-513`). libxml2 parses the content of `<noscript>` as markup, so `<!--</noscript><img src=x onerror=...>-->` is a single comment node and is returned unchanged. A browser with scripting enabled treats `<noscript>` as raw text, closes it at the first `</noscript>`, and parses the rest as live markup. The `<img onerror>` 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 `<noscript>` stays an inert comment in the browser. This is the parser difference from GHSA-5jfw-gq64-q45f. The `</noscript` check added for it (`clean.py:668-670`) is applied to `<style>` text only. Tested on lxml_html_clean 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 lxml_html_clean import Cleaner P = '''<noscript><!--</noscript><img src=x onerror="window.__fired=(window.__fired||0)+1;document.title='FIRED'">--></noscript>''' print(Cleaner(comments=False).clean_html(P)) print(Cleaner().clean_html(P)) ``` ```text [A1] claim: comment in noscript, comments=False

## Summary With `comments=False`, the Cleaner removes only IE conditional comments (`lxml_html_clean/clean.py:363-366`, `kill_conditional_comments` at `599-607`) and keeps every other comment (`421-422`, `511-513`). libxml2 parses the content of `<noscript>` as markup, so `<!--</noscript><img src=x onerror=...>-->` is a single comment node and is returned unchanged. A browser with scripting enabled treats `<noscript>` as raw text, closes it at the first `</noscript>`, and parses the rest as live markup. The `<img onerror>` 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 `<noscript>` stays an inert comment in the browser. This is the parser difference from GHSA-5jfw-gq64-q45f. The `</noscript` check added for it (`clean.py:668-670`) is applied to `<style>` text only. Tested on lxml_html_clean 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 lxml_html_clean import Cleaner P = '''<noscript><!--</noscript><img src=x onerror="window.__fired=(window.__fired||0)+1;document.title='FIRED'">--></noscript>''' print(Cleaner(comments=False).clean_html(P)) print(Cleaner().clean_html(P)) ``` ```text [A1] claim: comment in noscript, comments=False

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. None PR:N
User Interaction Required UI:R
Scope Changed S:C
Confidentiality Low C:L
Integrity Low I:L
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.5%
30-day probability
In the 43. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-141555
CVSS 4.7/10 · MEDIUM · 02.12.2026
CWE: CWE-79
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Cross-Site Scripting (XSS)
Summary: ## Summary

With comments=False, the Cleaner removes only IE conditional comments (lxml_html_clean/clean.py:363-366, kill_conditional_comments at 599-607) and keeps every other comment (421-422, 511-513). libxml2 parses the content of <noscript> as markup, so <!--</noscript><img src=x onerror=...>--> is a single comment node and is returned unchanged. A browser with scripting en…
Affected: lxml-html-clean

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · user interaction required (UI:R).
⚠️ Scope changes (S:C) — impact can cross security boundaries.

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; limited integrity modification (I:L); pivot to other systems possible.

🛡️ REMEDIATION
→ Apply vendor security update for lxml-html-clean.
→ Add CSP headers, HTML-encode all user input.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
📋 Routine update cycle (30 days)

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
4.7 / 10 · CVSS MEDIUM
Weakness Types (CWE)
Affected Products (1)
lxml-html-clean
References & Advisories (4)
Related CVEs
9.8
CVE-2026-105104
Use of hard-coded credentials in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlie
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner
9.0
CVE-2026-145039
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability in the protyle asset picker's render
8.8
CVE-2026-145062
SiYuan 3.8.10 before 3.8.11 fails to escape custom block attribute names from imported .sy.zip files in openFi
8.3
CVE-2026-145038
SiYuan 3.8.8-alpha.4 before 3.8.11 contains a stored cross-site scripting vulnerability because the unused ass
7.5
CVE-2026-145078
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability because the transactions WebSocket p
7.1
CVE-2026-136044
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Nks Resp