The lxml-html-clean library versions prior to 0.4.7 have a vulnerability in the Cleaner component when used with safe_attrs_only set to false. The Cleaner fails to remove JavaScript URLs in certain attributes such as iframe's srcdoc and SVG animation elements' to, values, from, and by attributes, allowing JavaScript execution. This can lead to stored or reflected cross-site scripting (XSS) when user HTML is cleaned and rendered. The default Cleaner configuration is not affected. A fix is available in version 0.4.7.