Moderate severityNVD Advisory· Published Mar 5, 2026· Updated Mar 6, 2026
lxml_html_clean: <base> tag injection through default Cleaner configuration
CVE-2026-28350
Description
lxml_html_clean is a project for HTML cleaning functionalities copied from lxml.html.clean. Prior to version 0.4.4, the tag passes through the default Cleaner configuration. While page_structure=True removes html, head, and title tags, there is no specific handling for , allowing an attacker to inject it and hijack relative links on the page. This issue has been patched in version 0.4.4.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
lxml-html-cleanPyPI | < 0.4.4 | 0.4.4 |
Affected products
5- osv-coords4 versionspkg:apk/chainguard/label-studiopkg:pypi/lxml-html-cleanpkg:rpm/opensuse/python-lxml_html_clean&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-lxml_html_clean&distro=openSUSE%20Tumbleweed
< 1.22.0-r7+ 3 more
- (no CPE)range: < 1.22.0-r7
- (no CPE)range: < 0.4.4
- (no CPE)range: < 0.4.2-bp160.2.1
- (no CPE)range: < 0.4.4-1.1
- fedora-python/lxml_html_cleanv5Range: < 0.4.4
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-xvp8-3mhv-424cghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-28350ghsaADVISORY
- github.com/fedora-python/lxml_html_clean/commit/9c5612ca33b941eec4178abf8a5294b103403f34ghsax_refsource_MISCWEB
- github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-xvp8-3mhv-424cghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.