CVE-2026-28350 Details
Description
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.
A vulnerability exists in lxml_html_clean versions prior to 0.4.4, where the default Cleaner configuration does not properly handle <base> tags. This oversight allows attackers to inject <base> tags and hijack relative links on the page. Although the Cleaner removes <html>, <head>, and <title> tags when page_structure=True, <base> tags are not addressed, creating a potential attack vector. The injected <base> tag can redirect all relative URLs to a domain controlled by the attacker, leading to phishing, cross-site scripting, or defacement attacks.
Users can upgrade to lxml_html_clean version 0.4.4 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-xvp8-3mhv-424c | CISA-ADP | ExploitVendor Advisory |
| https://github.com/fedora-python/lxml_html_clean/commit/9c5612ca33b941eec4178abf8a5294b103403f34 | [email protected] | Patch |
| https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-xvp8-3mhv-424c | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| fedoralovespython lxml html clean | < 0.4.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 9, 2026 | Initial Analysis | [email protected] |
| Mar 6, 2026 | CVE Modified | CISA-ADP |
| Mar 5, 2026 | New CVE Received | [email protected] |