4.7

CVE-2026-141556: lxml-html-clean: Cleaner(safe_attrs_only=False) keeps javascript: in iframe srcdoc and SVG animation values

Received
AliasesGHSA-5gvf-7wqf-r4cvCGA-3v99-jrrq-q49fCGA-gwcj-x3p7-c8xj
Published 02-12-2026Last modified 05-12-2026

Vulnerability summary

CVE-2026-141556 is a medium (CVSS 4.7) vulnerability in fedora-python lxml_html_clean. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 35.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.7/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.39%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 02-12-2026
    PublishedVulnerability first disclosed.
  2. 05-12-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.39%

Chance of exploitation in the next 30 days

Percentile

35%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

03-12-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard1 product
  • label-studioAll versions (No fix recorded)
Fedora-python1 product
PyPI1 product
  • lxml-html-clean< 0.4.7

3 vendors · 3 products

References

5 links