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

Home › CVE › Python

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

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

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

PythonLinuxOperating systemsBrowsersVulnerabilities

Research article

lxml-html-clean Library Allows XSS via Conditional Comments

CVECVE-2026-141555
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-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

FieldValue
CVE IDCVE-2026-141555 [1]
Vendorfedora-python [1]
Productlxml-html-clean [1]
CWECWE-79 [1]
CVSS 3.14.7 MEDIUM, scored by security-advisories@github.com [1]
Published2026-12-02T21:18:11 [1]
Last Modified2026-12-03T00:18:06 [1]
Record StatusReceived [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

Affected ProductAffected VersionFixed Version
lxml-html-clean< 0.4.7 [1]0.4.7 [3]

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

  1. Update lxml-html-clean to version 0.4.7 [3].
  2. Review dependencies to ensure no other components are affected.
  3. Monitor for any signs of exploitation, though no indicators are provided by the sources [2].

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

  1. 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. Vulnerability identification, Vulnerability description, Affected products and versions, Impact analysis, Remediation
  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 and threat intelligence status
  3. GHSA-vfhw-gfwp-vxfj. GitHub Security Advisory Database, 2026-12-03. https://github.com/advisories/GHSA-vfhw-gfwp-vxfj. Accessed 2026-12-03. Affected products and versions, Remediation
  4. 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. Exploitation and threat intelligence status

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. 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.

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')

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-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