PT-2026-166283
CVE-2026-141555
·
Published
2026-12-02
·
Updated
2026-12-03
Description by
CVSS 3.1
4.7
MediumMetricsAV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions
lxml-html-clean versions prior to 0.4.7
Description
The
Cleaner in lxml html clean/clean.py fails to properly handle comments within noscript elements when configured with comments=False. While it removes conditional comments, other comments inside noscript are retained. Because libxml2 parses noscript content as markup but browsers with scripting enabled treat it as raw text, a closing noscript tag placed inside a retained comment can prematurely terminate the element in the browser. This allows attacker-controlled markup to execute when the cleaned HTML is rendered, requiring no user interaction.Recommendations
Update to version 0.4.7.
Found an issue in the description? Have something to add? Feel free to write us 👾