Vulnerability · Published Mar 5, 2026 · Assigned by GitHub_M
CVE-2026-28350lxml_html_clean: <base> tag injection through default Cleaner configuration
Medium 6.1
In plain English
A medium-severity security flaw in lxml_html_clean from fedora-python. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | lxml | 4.9.2-1+deb12u1 | DEBIAN-CVE-2026-28350 |
| Debian:13 | lxml | 5.2.0-1 | DEBIAN-CVE-2026-28350 |
| Debian:14 | lxml | 5.2.0-1 | DEBIAN-CVE-2026-28350 |
| Debian:13 | lxml-html-clean | 0.4.4-1~deb13u1 | DEBIAN-CVE-2026-28350 |
| Debian:14 | lxml-html-clean | 0.4.4-1 | DEBIAN-CVE-2026-28350 |
| PyPI | lxml-html-clean | 0.4.4 | GHSA-xvp8-3mhv-424c |
| PyPI | lxml-html-clean | 0.4.4 | PYSEC-2026-2202 |
| Ubuntu:24.04:LTS | lxml-html-clean | no fix listed | UBUNTU-CVE-2026-28350 |
| Ubuntu:25.10 | lxml-html-clean | no fix listed | UBUNTU-CVE-2026-28350 |
| Ubuntu:26.04:LTS | lxml-html-clean | no fix listed | UBUNTU-CVE-2026-28350 |
| Ubuntu:26.10 | lxml-html-clean | no fix listed | UBUNTU-CVE-2026-28350 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| fedora-python | lxml_html_clean | < 0.4.4 |
Weakness: CWE-116 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N