{"id":"DEBIAN-CVE-2026-141555","details":"lxml-html-clean is an HTML cleaning library for Python. Prior to 0.4.7, Cleaner in lxml_html_clean/clean.py configured with comments=False uses kill_conditional_comments to remove conditional comments but retains other comments inside noscript. libxml2 parses the noscript content as markup and retains the comment as a node, while a browser with scripting enabled treats the content as raw text. A closing noscript tag inside a retained comment can terminate the element in the browser, causing following attacker-controlled markup to execute when cleaned HTML is rendered, without a click. The default Cleaner removes all comments, and the same comment outside noscript remains inert. An earlier check for a noscript closing tag applies to style text rather than retained comments. This issue is fixed in 0.4.7.","modified":"2026-12-05T19:00:12.026884591Z","published":"2026-12-02T21:18:11.160Z","upstream":["CVE-2026-141555"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-141555"}],"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-141555.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-141555.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-141555.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-141555.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-141555.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"}]}