The lxml_html_clean library's Cleaner component has a vulnerability when used with safe_attrs_only set to false. It fails to remove JavaScript URLs in the srcdoc attribute of iframes and in certain SVG animation attributes, allowing JavaScript execution. This can lead to stored or reflected cross-site scripting (XSS) attacks, especially when host_whitelist is set to allow certain iframe sources or when remove_unknown_tags is false for SVG animations. The default Cleaner configuration is not affected. A fix is available in version 1.0.8_27.