Advisory

PYSEC-2026-2202

Also known as: CVE-2026-28350, GHSA-xvp8-3mhv-424c

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2026-03-05 20:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

lxml-html-clean

PyPI · All systems

Affected

  • introduced 0, fixed 0.4.4 (ecosystem)

Fixed versions

0.4.4

Fix

  • Fixed version 0.4.4
    pip install --upgrade lxml-html-clean==0.4.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences