{"id":"DEBIAN-CVE-2026-141556","details":"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.","modified":"2026-12-05T19:00:12.028167271Z","published":"2026-12-02T21:18:11.310Z","upstream":["CVE-2026-141556"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-141556"}],"affected":[{"package":{"name":"lxml","ecosystem":"Debian:12","purl":"pkg:deb/debian/lxml?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.2-1","4.9.2-1+deb12u1","4.9.3-1","4.9.4-1","5.1.0-1","5.2.0-1","5.2.1-1","5.2.2-1","5.2.2-2","5.3.0-1","5.3.1-1","5.3.2-1","5.4.0-1","6.0.1-1","6.0.2-1","6.1.0-1","6.1.3-1","6.1.3-1.1","7.0.0~a2-1","7.0.0~b1-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-141556.json"}},{"package":{"name":"lxml","ecosystem":"Debian:13","purl":"pkg:deb/debian/lxml?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-141556.json"}},{"package":{"name":"lxml","ecosystem":"Debian:14","purl":"pkg:deb/debian/lxml?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-141556.json"}},{"package":{"name":"lxml-html-clean","ecosystem":"Debian:13","purl":"pkg:deb/debian/lxml-html-clean?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.2-1","0.4.3-1","0.4.4-1","0.4.4-1~deb13u1","0.4.5-1","0.4.7-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-141556.json"}},{"package":{"name":"lxml-html-clean","ecosystem":"Debian:14","purl":"pkg:deb/debian/lxml-html-clean?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7-1"}]}],"versions":["0.4.2-1","0.4.3-1","0.4.4-1","0.4.4-1~deb13u1","0.4.5-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-141556.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}