Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › JavaScript

CVE-2026-141556 — fedora-python lxml html clean

Medium · CVSS 4.7EPSS 0.4% First seen December 02, 2026

One of 2 fedora-python lxml html clean vulnerabilities published together by NVD: our article covers all of them.

JavaScriptPythonLinuxWebOperating systemsVulnerabilities

Research article

lxml-html-clean Vulnerability Allows Cross-site Scripting in Python Libraries

CVECVE-2026-141556
Vendor and productfedora-python lxml html clean
PublishedDecember 03, 2026 22:00 UTC
Research cut-offDecember 03, 2026 21:50 UTC
Sources reviewed4: 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 IDVendorProductCWECVSS 3.1PublishedLast ModifiedRecord Status
CVE-2026-141556lxml-html-cleanPython libraryCWE-79, CWE-1844.7 MEDIUM, scored by security-advisories@github.com [1]2026-12-02T21:18:112026-12-02T21:18:11Received

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

Affected ProductFixed Version
lxml-html-clean0.4.7 [1, 3]

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

  1. Upgrade lxml-html-clean to version 0.4.7 to address the vulnerability [1, 3].
  2. Update lxml-html-clean to the fixed version 0.4.7 [1, 3].
  3. Monitoring system logs for unusual activity is general defensive guidance; the record does not give it.

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

  1. 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. CVE record, CVSS score, affected versions, fixed version, CWE, description
  2. 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. Exploitation status
  3. GHSA-5gvf-7wqf-r4cv. GitHub Security Advisory Database, 2026-12-03. https://github.com/advisories/GHSA-5gvf-7wqf-r4cv. Accessed 2026-12-03. CVSS score, affected packages, fixed version, CWE
  4. 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. EPSS score and date

Written with AI assistance from the 4 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 4.7 CVSS 3.1 base score 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.

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

Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

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

ProductAffected versionsFixed in
lxml-html-clean (PyPI)≤ 0.4.60.4.7
fedora-python lxml html clean< 0.4.7—

From the GitHub Advisory Database and the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain), the GitHub Advisory Database (CC BY 4.0).

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