Home › CVE › JavaScript
CVE-2026-141556 — fedora-python lxml html clean
One of 2 fedora-python lxml html clean vulnerabilities published together by NVD: our article covers all of them.
JavaScriptPythonLinuxWebOperating systemsVulnerabilitiesResearch article
lxml-html-clean Vulnerability Allows Cross-site Scripting in Python Libraries
| CVE | CVE-2026-141556 |
|---|---|
| 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-02); CISA KEV catalog; GitHub advisory (2026-12-03); FIRST EPSS (2026-12-03) |
Executive summary
CVE-2026-141556 impacts versions of lxml-html-clean up to 0.4.6, enabling cross-site scripting through incomplete filtering [1]. The CVSS 3.1 score is 4.7 MEDIUM, with a vector of AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N, scored by security-advisories@github.com [1]. The reviewed sources do not report exploitation [2]. The fixed version listed in the record is 0.4.7 [1].
Key points
- CVE-2026-141556 impacts lxml-html-clean versions up to 0.4.6 [1].
- The CVSS 3.1 score is 4.7 MEDIUM, with a vector of AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N, scored by security-advisories@github.com [1].
- CVE-2026-141556 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-12-03 [2].
- The vulnerability is resolved in version 0.4.7 of lxml-html-clean [1, 3].
- The EPSS score for this vulnerability is 0.0039 (0.39%), suggesting a low probability of exploitation within the next 30 days [4].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-141556 | lxml-html-clean | Python library | CWE-79, CWE-184 | 4.7 MEDIUM, scored by security-advisories@github.com [1] | 2026-12-02T21:18:11 | 2026-12-02T21:18:11 | Received |
Vulnerability description
The lxml-html-clean library, when configured with safeattrsonly set to False, fails to properly sanitize specific attributes in HTML elements. This allows attackers to inject malicious scripts because the rewritelinks function does not visit iframe srcdoc and SVG animation attributes; per the record, iframe srcdoc content can run without a click, while the SVG link change runs when clicked [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates the vulnerability requires network access, high attack complexity, no privileges, and user interaction [1]. The record does not describe what input access an attacker needs beyond the network access shown by the vector [1].
Impact analysis
The CVSS vector shows this vulnerability affects confidentiality and integrity but not availability. It allows an attacker to potentially run JavaScript in a victim's browser [1]; the record does not describe data theft or session hijacking.
Affected products and versions
Exploitation and threat intelligence status
CVE-2026-141556 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-12-03 [2]. The EPSS score for this vulnerability is 0.0039 (0.39%), suggesting a low probability of exploitation within the next 30 days [4].
Detection and exposure assessment
Systems using lxml-html-clean versions before 0.4.7 may be exposed. Readers should verify if their installed version is within the affected range [1].
Remediation
The vulnerability is resolved in version 0.4.7 of lxml-html-clean [1, 3]. The record lists 0.4.7 as the fixed version [1].
Remediation checklist
Evidence gaps
- The sources do not describe the internal workings of the affected component.
- The sources do not mention any alternative solutions.
- The sources do not provide a complete version range for affected products.
- The sources do not offer indicators of compromise.
- The sources do not describe the attack lifecycle or specific scenarios.
References
- CVE-2026-141556 record. NIST National Vulnerability Database (NVD), 2026-12-02. https://nvd.nist.gov/vuln/detail/CVE-2026-141556. 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-5gvf-7wqf-r4cv. GitHub Security Advisory Database, 2026-12-03. https://github.com/advisories/GHSA-5gvf-7wqf-r4cv. Accessed 2026-12-03.
- EPSS score for CVE-2026-141556. FIRST, 2026-12-03. https://api.first.org/data/v1/epss?cve=CVE-2026-141556. Accessed 2026-12-03.
Summary
lxml-html-clean is an HTML cleaning library for Python. In versions through 0.4.6, Cleaner in lxml_html_clean/clean.py configured with safe_attrs_only=False removes JavaScript links using rewrite_links, which visits only attributes in lxml.html.defs.link_attrs and misses iframe srcdoc and SVG animation attributes. When an iframe is retained through host_whitelist, srcdoc takes priority over its source and can cause attacker-controlled HTML to run without a click. With remove_unknown_tags=False, SVG set or animate elements can use attributeName and attributes such as to, from, by, or values to change a link destination to a JavaScript URL that runs when clicked. This vulnerability 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')
- CWE-184: Incomplete List of Disallowed Inputs
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/883db209e04222a1959f777…
- 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-141556?
CVE-2026-141556 impacts versions of lxml-html-clean up to 0.4.6, enabling cross-site scripting through incomplete filtering. The CVSS 3.1 score is 4.7 MEDIUM, with a vector of AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N, scored by security-advisories@github.com. The reviewed sources do not report exploitation. The fixed version listed in the record is 0.4.7. Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).
How severe is CVE-2026-141556?
CVE-2026-141556 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-141556 being exploited?
Not as far as is known: CVE-2026-141556 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.4% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-141556?
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-141556?
Upgrade lxml-html-clean to version 0.4.7 to address the vulnerability. Update lxml-html-clean to the fixed version 0.4.7. Monitoring system logs for unusual activity is general defensive guidance; the record does not give it.
Timeline & sources
References
Related vulnerabilities & news
- 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)
- Sentry SDK flaws can expose session cookies and environment variables on Ubuntu 20.04 and 22.04
- Aedes MQTT broker: deeply nested topic strings crash the Node.js process (CVE-2026-63341)
- CISA Confirms Active Exploitation of Decade-Old OpenSSH Flaw Dubbed "SSHole"