Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted HTML to sanitizing app
-
DeliveryCleaner retains iframe srcdoc or SVG animation value
-
ExploitVictim renders cleaned output
-
Executionjavascript: payload executes in browser context
-
ImpactSession theft or actions as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the non-default configuration Cleaner(safe_attrs_only=False); the default Cleaner() (safe_attrs_only=True) is not affected because it strips srcdoc, to and values. The clickless iframe srcdoc variant additionally requires host_whitelist to be set so the attacker's <iframe> is retained - srcdoc then overrides the whitelisted src and runs on render with no interaction. The SVG <set>/<animate> variant additionally requires remove_unknown_tags=False and one user click on the resulting SVG link, since the animation sets href to a javascript: URL at runtime. In all cases the application must render the cleaned HTML back to a victim. Limiting factors: both paths depend on operator-chosen non-default Cleaner options, and the SVG path also needs user interaction, so default-configured users are not exposed. |
| Impact | This is a genuine but moderate-priority issue, not a drop-everything emergency, and the signals are internally consistent. The CVSS 3.1 base score is 4.7 (Medium) with vector AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N: network-reachable and unauthenticated (attacker-supplied HTML), but with high attack complexity and required user interaction, a changed scope (script escapes the sanitizer boundary into the victim's browser), and only Low confidentiality/integrity impact with no availability impact. The vuln.today decision label is 'this_month' - a prioritized-but-not-urgent signal, consistent with the absence of a CISA KEV listing. No EPSS score is present in the input, so probabilistic exploitation likelihood cannot be quantified; this is a data gap, not a low score. The vulnerability is NOT in CISA KEV, so there is no confirmed active exploitation. A detailed public PoC reference exists - the GHSA advisory includes reproduction payloads and headless-Chromium verification - but it is not labelled in the input as confirmed weaponized exploit code. The dominant risk-limiting factor is configuration dependency: exploitation requires a non-default Cleaner(safe_attrs_only=False), and the clickless variant additionally requires host_whitelist. The default Cleaner() is explicitly not affected. Net: a real sanitizer-bypass XSS worth patching this month for affected deployments, but its reach is gated by non-default configuration rather than being broadly exploitable. |
| Exploit ScenarioDerived | An attacker submits HTML into an application that sanitizes user content with Cleaner(safe_attrs_only=False) and then renders the result. If the app also sets host_whitelist (e.g. to permit video embeds), an attacker-supplied <iframe> is retained and its srcdoc attribute - an entire HTML document that takes priority over src - executes script in the victim's browser on page load with no click. A public PoC in the GHSA advisory reproduces this and verifies execution in headless Chromium; a separate SVG <set>/<animate> variant achieves XSS after one click when remove_unknown_tags=False. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
HTML sanitization bypass in lxml-html-clean through 0.4.6 allows attacker-supplied script to survive Cleaner when it is configured with the non-default safe_attrs_only=False option, via iframe srcdoc and SVG set/animate attributes that rewrite_links does not visit. The clickless srcdoc path additionally requires host_whitelist so the attacker's iframe is retained; the SVG path requires remove_unknown_tags=False and one click on the resulting link. The default Cleaner() (safe_attrs_only=True) is not affected because it strips srcdoc, to and values; a public proof-of-concept reference is documented in the advisory, but exploit code availability was not independently confirmed and there is no CISA KEV entry.
RemediationAI
Upgrade lxml-html-clean to 0.4.7, the version listed in the vendor advisory and release tag https://github.com/fedora-python/lxml_html_clean/releases/tag/0.4.7; the upstream fix commit is https://github.com/fedora-python/lxml_html_clean/commit/883db209e04222a1959f7773f5bde1da0224fbe1. The fix removes srcdoc from every element and removes to/from/by/values from SVG set/animate/animateTransform elements whose attributeName targets href or xlink:href. As compensating controls where upgrading is not immediately possible, keep the default safe_attrs_only=True, which strips srcdoc, to and values and is not affected; if safe_attrs_only=False is required, avoid setting host_whitelist so attacker iframes are not retained and keep remove_unknown_tags=True so SVG set/animate elements are dropped, since those options are the prerequisites for the two exploit paths described in GHSA-5gvf-7wqf-r4cv.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Cleaner in lxml_html_clean/clean.py removes JavaScript by deleting on* attributes and blanking javascript: URLs through doc.rewrite_links(self._remove_javascript_link). rewrite_links only visits attributes listed in lxml.html.defs.link_attrs, which omits srcdoc on iframe and the SVG animation value attributes to, from, by and values. This is an incomplete-blacklist problem (CWE-184) manifesting as XSS (CWE-79), the same root cause previously reported for xlink:href with safe_attrs_only=False. An iframe srcdoc value is a complete HTML document rendered inside the frame and takes priority over src, so a whitelisted src does not make it safe; with host_whitelist set, the iframe is retained and its srcdoc content runs on render. On SVG set/animate/animateTransform elements, attributeName="href" (or xlink:href) combined with to/from/by/values changes the enclosing link's destination to a javascript: URL at runtime, so the javascript: scheme ends up on the link even though href itself was cleaned. The fix drops srcdoc from every element and drops to/from/by/values on SVG animation elements whose attributeName resolves to href or xlink:href, comparing names case-insensitively and without namespace or prefix so XHTML srcdoc/SRCDOC collisions and namespaced href variants cannot hide.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
AC:H because exploitation depends on non-default Cleaner options; UI:R as the SVG path needs a click (srcdoc path is clickless); S:C since script escapes the sanitizer into the browser; C:L/I:L, A:N for typical XSS.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-141834
GHSA-5gvf-7wqf-r4cv
NVD
CVE.org
EPSS
Exploit-DB