iframe srcdoc · lxml_html_clean: Cleaner(safe_attrs_only=False) keeps javascript:
Affects gptlineSource GCVE Database
Not known to be exploited · CVSS 4.7 Medium : upgrade to 1.0.8_27 when convenient.
Data as of 4 Dec 2026, 20:15 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 4.7 |
|---|
- Patch
- Available – fixed in 1.0.8_27, 0.4.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade gptline to 1.0.8_27; lxml-html-clean to 0.4.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewgptlinepkg:brew/gptlineOther threats | Affected
| Fixed in
|
PyPIlxml-html-cleanpkg:pypi/lxml-html-cleanOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in lxml_html_clean version 1.0.8_27 that addresses this issue by removing the srcdoc attribute from all elements and deleting the to, from, by, and values attributes on <set> and <animate> SVG elements when attributeName is href or xlink:href. Users should upgrade to version 1.0.8_27 or later to mitigate this vulnerability. If upgrading is not immediately possible, avoid using Cleaner with safe_attrs_only set to false in conjunction with host_whitelist or remove_unknown_tags set to false. The default Cleaner configuration (safe_attrs_only=true) is not vulnerable and can be used safely.
Description
The lxml_html_clean library's Cleaner component has a vulnerability when used with safe_attrs_only set to false. It fails to remove JavaScript URLs in the srcdoc attribute of iframes and in certain SVG animation attributes, allowing JavaScript execution. This can lead to stored or reflected cross-site scripting (XSS) attacks, especially when host_whitelist is set to allow certain iframe sources or when remove_unknown_tags is false for SVG animations. The default Cleaner configuration is not affected. A fix is available in version 1.0.8_27.
References
- github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-5gvf-7wqf-r4cv (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-141556 (opens in a new tab)
- github.com/fedora-python/lxml_html_clean/commit/883db209e04222a1959f7773f5bde1da0224fbe1 (opens in a new tab)
- github.com/fedora-python/lxml_html_clean (opens in a new tab)
- github.com/fedora-python/lxml_html_clean/releases/tag/0.4.7 (opens in a new tab)