PYSEC-2026-2202

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/lxml-html-clean/PYSEC-2026-2202.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2202
Aliases
Published
2026-03-05T20:16:16.333Z
Modified
2026-07-13T07:15:27.778054869Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

lxmlhtmlclean 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.

References

Affected packages

PyPI / lxml-html-clean

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.4

Affected versions

0.*
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.3.0
0.3.1
0.4.0
0.4.1
0.4.2
0.4.3

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/lxml-html-clean/PYSEC-2026-2202.yaml"