Approved changes feed: RSS · Atom

cpe:2.3:a:fedoralovespython:lxml_html_clean:*:*:*:*:*:python:*:*

part: a version: * update: *

VendorFedoralovespython (4d877539-2fdd-560c-adb5-0f7a71e53f5a)
ProductLxml Html Clean (3a04d849-01f1-54ed-b718-360487a0d848)
Edition*
Language*
Software edition*
Target softwarepython
Target hardware*
Other*

Notes

Imported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/fedora-python/lxml_html_clean purl2cpe 2026-06-01 10:14:20.227233
pkg:pypi/lxml-html-clean purl2cpe 2026-06-01 10:14:20.227235

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-28350 vulnerable 2026-06-08 07:55:15.171131 lxml_html_clean: <base> tag injection through default Cleaner configuration
MEDIUM (6.1)
lxml_html_clean is a project for HTML cleaning functionalities copied from `lxml.html.clean`. Prior to version 0.4.4, the <base> tag passes through the default Cleaner configuration. While page_structure=True removes html, head, and title tags, there is no specific handling for <base>, allowing an attacker to inject it and hijack relative links on the page. This issue has been patched in version 0.4.4.
Published: 2026-03-05T19:49:55.662Z
Updated: 2026-03-06T17:05:13.841Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-28348 vulnerable 2026-06-08 07:55:15.170620 lxml_html_clean: CSS @import Filter Bypass via Unicode Escapes
MEDIUM (6.1)
lxml_html_clean is a project for HTML cleaning functionalities copied from `lxml.html.clean`. Prior to version 0.4.4, the _has_sneaky_javascript() method strips backslashes before checking for dangerous CSS keywords. This causes CSS Unicode escape sequences to bypass the @import and expression() filters, allowing external CSS loading or XSS in older browsers. This issue has been patched in version 0.4.4.
Published: 2026-03-05T19:49:26.385Z
Updated: 2026-03-06T17:55:36.273Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-52595 vulnerable 2026-06-08 06:52:16.137954 HTML Cleaner allows crafted scripts in special contexts like svg or math to pass through
HIGH (7.7)
lxml_html_clean is a project for HTML cleaning functionalities copied from `lxml.html.clean`. Prior to version 0.4.0, the HTML Parser in lxml does not properly handle context-switching for special HTML tags such as `<svg>`, `<math>` and `<noscript>`. This behavior deviates from how web browsers parse and interpret such tags. Specifically, content in CSS comments is ignored by lxml_html_clean but may be interpreted differently by web browsers, enabling malicious scripts to bypass the cleaning process. This vulnerability could lead to Cross-Site Scripting (XSS) attacks, compromising the security of users relying on lxml_html_clean in default configuration for sanitizing untrusted HTML content. Users employing the HTML cleaner in a security-sensitive context should upgrade to lxml 0.4.0, which addresses this issue. As a temporary mitigation, users can configure lxml_html_clean with the following settings to prevent the exploitation of this vulnerability. Via `remove_tags`, one may specify tags to remove - their content is moved to their parents' tags. Via `kill_tags`, one may specify tags to be removed completely. Via `allow_tags`, one may restrict the set of permissible tags, excluding context-switching tags like `<svg>`, `<math>` and `<noscript>`.
Published: 2024-11-19T21:27:08.871Z
Updated: 2024-11-20T15:19:10.677Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.

Inspect record JSON

Open JSON directly

Open this panel to browse, search, copy or download the JSON record.