PT-2026-22701 · Unknown · Lxml Html Clean
Uug4Na
·
Published
2026-02-27
·
Updated
2026-03-26
·
CVE-2026-28350
CVSS v2.0
6.4
Medium
| Vector | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Name of the Vulnerable Software and Affected Versions
lxml html clean versions prior to 0.4.4
Description
The software does not properly handle the
<base> tag during HTML cleaning. Specifically, the <base> tag is not removed even when page structure=True, which removes html, head, and title tags. This allows an attacker to inject a <base> tag and hijack relative links on the page. Injecting a <base> tag changes the base URL for all relative URLs on the page, including links, images, and scripts, to a domain controlled by the attacker. This can lead to phishing, redirection of form submissions, cross-site scripting (XSS), and defacement of the webpage. The API endpoint is not mentioned. The vulnerable parameter is not mentioned. The vulnerable function is not mentioned.Recommendations
Update to lxml html clean version 0.4.4 or later.
Exploit
Fix
Improper Encoding or Escaping of Output
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Lxml Html Clean