PT-2026-166284

CVE-2026-141556

·

Published

2026-12-02

·

Updated

2026-12-03

Description by

CVSS 3.1
4.7
Medium
MetricsAV: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 class in lxml html clean/clean.py fails to properly remove JavaScript links when configured with safe attrs only=False. The rewrite links function only checks attributes listed in lxml.html.defs.link attrs, overlooking srcdoc attributes in iframe elements and animation attributes in SVG elements. If an iframe is kept via host whitelist, the srcdoc attribute can execute attacker-controlled HTML automatically. Additionally, when remove unknown tags=False, SVG set or animate elements can use attributeName and attributes like to, from, by, or values to redirect link destinations to JavaScript URLs that execute upon being clicked.
Recommendations Update lxml-html-clean to version 0.4.7.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-5GVF-7WQF-R4CV
Found an issue in the description? Have something to add? Feel free to write us 👾