CVE-2026-28350
MEDIUM6.1EPSS 0.02%lxml-html-clean has <base> tag injection through default Cleaner configuration
Published: 3/2/2026Modified: 4/28/2026
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.
Affected packages (2)
- Debian/lxml-html-cleanfrom 0
- PyPI/lxml-html-cleanfrom 0, < 0.4.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-28350
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-28350
- PATCHhttps://github.com/fedora-python/lxml_html_clean
- WEBhttps://github.com/fedora-python/lxml_html_clean/commit/9c5612ca33b941eec4178abf8a5294b103403f34
- WEBhttps://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-xvp8-3mhv-424c