Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-28350 EUVD-2026-20098GHSA-xvp8-3mhv-424cPYSEC-2026-2202

lxml_html_clean: <base> tag injection through default Cleaner configuration

Published Mar 5, 2026 · Updated Mar 6, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
fedora-python lxml_html_clean < 0.4.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 lxml 5.2.0-1 —
Debian 14 lxml-html-clean 0.4.4-1 —
Debian 13 lxml 5.2.0-1 —
Debian 13 lxml-html-clean 0.4.4-1~deb13u1 —
Debian 12 lxml 4.9.2-1+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 lxml-html-clean No fix yet —
Ubuntu 26.04 LTS lxml-html-clean No fix yet —
Ubuntu 25.10 lxml-html-clean No fix yet —
Ubuntu 24.04 LTS lxml-html-clean No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-lxml_html_clean 0.4.4-1.1 openSUSE-SU-2026:10322-1
openSUSE Leap 16.0 python-lxml_html_clean 0.4.2-bp160.2.1 openSUSE-SU-2026:20345-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI lxml-html-clean < 0.4.4 0.4.4 GHSA-xvp8-3mhv-424c

Advisories 2

References