CVE-2026-141555 — fedora-python lxml html clean
One of 2 fedora-python lxml html clean vulnerabilities published together by NVD: our article covers all of them.
PythonLinuxOperating systemsBrowsersVulnerabilitiesResearch article
lxml-html-clean Library Allows XSS via Conditional Comments
| CVE | CVE-2026-141555 |
|---|---|
| Vendor and product | fedora-python lxml html clean |
| Published | December 03, 2026 22:00 UTC |
| Research cut-off | December 03, 2026 21:50 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-12-03); CISA KEV catalog; GitHub advisory (2026-12-03); FIRST EPSS (2026-12-03) |
Executive summary
CVE-2026-141555 affects the lxml-html-clean library, which is used to clean HTML in Python. The CVSS 3.1 score is 4.7 MEDIUM, scored by security-advisories@github.com [1]. The vulnerability impacts versions prior to 0.4.7 [1]. The reviewed sources do not report exploitation [2]. The main action is to update to the fixed version 0.4.7 [3].
Key points
- CVE-2026-141555 affects the lxml-html-clean library, allowing cross-site scripting via conditional comments [1].
- The CVSS 3.1 score is 4.7 MEDIUM, scored by security-advisories@github.com [1].
- Versions prior to 0.4.7 are affected, with the fix available in version 0.4.7 [3].
- The reviewed sources do not report exploitation [2].
- The main action is to update to the fixed version 0.4.7 [3].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-141555 [1] |
| Vendor | fedora-python [1] |
| Product | lxml-html-clean [1] |
| CWE | CWE-79 [1] |
| CVSS 3.1 | 4.7 MEDIUM, scored by security-advisories@github.com [1] |
| Published | 2026-12-02T21:18:11 [1] |
| Last Modified | 2026-12-03T00:18:06 [1] |
| Record Status | Received [1] |
Vulnerability description
The lxml-html-clean library, when configured with comments=False, improperly handles conditional comments inside noscript tags. This can lead to an attacker injecting markup that executes when the cleaned HTML is rendered in a browser with scripting enabled, without requiring user interaction [1]. The issue is resolved in version 0.4.7 [3].
Attack surface and exploitation prerequisites
The CVSS vector indicates that the vulnerability is reachable over the network with high attack complexity and requires no privileges [1]. User interaction is necessary for the attack to succeed [1].
Impact analysis
The CVSS vector shows that the vulnerability has low impact on confidentiality and integrity, with no availability impact [1]. The specific impact described is that attacker-controlled markup can execute when the cleaned HTML is rendered [1].
Affected products and versions
Exploitation and threat intelligence status
CVE-2026-141555 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-12-03 [2]. The estimated probability of exploitation within the next 30 days is 0.48% [4].
Detection and exposure assessment
To assess exposure, check if the installed version of lxml-html-clean is less than 0.4.7 [1]. No specific detection steps are provided by the sources [2].
Remediation
The fixed version for lxml-html-clean is 0.4.7 [3]. No mitigation steps are provided by the sources. Updating to the fixed version is the recommended action to address the vulnerability [3].
Remediation checklist
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not describe a scenario or attack lifecycle.
- The sources do not provide detection steps.
- The sources do not list any fixed version beyond 0.4.7.
References
- CVE-2026-141555 record. NIST National Vulnerability Database (NVD), 2026-12-03. https://nvd.nist.gov/vuln/detail/CVE-2026-141555. Accessed 2026-12-03.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-03. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-03.
- GHSA-vfhw-gfwp-vxfj. GitHub Security Advisory Database, 2026-12-03. https://github.com/advisories/GHSA-vfhw-gfwp-vxfj. Accessed 2026-12-03.
- EPSS score for CVE-2026-141555. FIRST, 2026-12-03. https://api.first.org/data/v1/epss?cve=CVE-2026-141555. Accessed 2026-12-03.
Summary
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.
Severity breakdown
Medium · 4.7
An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- reaches beyond the vulnerable component (e.g. from a sandbox or VM to the host)
- Impact
- low on confidentiality and integrity, none on availability
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| lxml-html-clean (PyPI) | ≤ 0.4.6 | 0.4.7 |
| fedora-python lxml html clean | < 0.4.7 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/fedora-python/lxml_html_clean/commit/c83f0befb32505782858f56…
- github.com/fedora-python/lxml_html_clean/releases/tag/0.4.7
Other references
Affected
- fedora-python lxml html clean
Frequently asked questions
What is CVE-2026-141555?
CVE-2026-141555 affects the lxml-html-clean library, which is used to clean HTML in Python. The CVSS 3.1 score is 4.7 MEDIUM, scored by security-advisories@github.com. The vulnerability impacts versions prior to 0.4.7. The reviewed sources do not report exploitation. The main action is to update to the fixed version 0.4.7. Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).
How severe is CVE-2026-141555?
CVE-2026-141555 has a CVSS 3.1 base score of 4.7 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
Is CVE-2026-141555 being exploited?
Not as far as is known: CVE-2026-141555 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-141555?
lxml-html-clean (PyPI) ≤ 0.4.6 (fixed in 0.4.7); fedora-python lxml html clean < 0.4.7.
How do I fix CVE-2026-141555?
Update lxml-html-clean to version 0.4.7. Review dependencies to ensure no other components are affected. Monitor for any signs of exploitation, though no indicators are provided by the sources.
Timeline & sources
References
Related vulnerabilities & news
- Sentry SDK flaws can expose session cookies and environment variables on Ubuntu 20.04 and 22.04
- Debian Patches Twelve Django Vulnerabilities With python-django Update DSA-6648-1
- LLMKube Model.spec.source path traversal allows arbitrary file read (CVE-2026-68903)
- CISA Confirms Active Exploitation of Decade-Old OpenSSH Flaw Dubbed "SSHole"
- CVE-2026-126087: Untrusted search path in OpenJD Sessions and AWS Deadline Cloud worker agent