# CVE-2026-141556: lxml-html-clean: Cleaner(safe\_attrs\_only=False) keeps javascript: in iframe srcdoc and SVG animation values

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-05
- Aliases: GHSA-5gvf-7wqf-r4cv, CGA-3v99-jrrq-q49f, CGA-gwcj-x3p7-c8xj
- Record: https://cvemate.com/vulnerability/CVE-2026-141556 · JSON: https://cvemate.com/vulnerability/CVE-2026-141556/json

## Description

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

## Signals

- CVSS: 4.7 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.389%, percentile 35.157%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard label-studio (Chainguard): All versions (No fix recorded)
- fedora-python lxml\_html\_clean: \< 0.4.7
- PyPI lxml-html-clean (PyPI): \< 0.4.7

## References

- <https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-5gvf-7wqf-r4cv>
- <https://github.com/fedora-python/lxml_html_clean/commit/883db209e04222a1959f7773f5bde1da0224fbe1>
- <https://github.com/fedora-python/lxml_html_clean/releases/tag/0.4.7>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-141556>
- <https://github.com/fedora-python/lxml_html_clean>

---

Data as of 2026-12-05T06:29:22.954Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
