lxml_html_clean: <base> tag injection through default Cleaner configuration (fedora-python lxml_html_clean)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.30 % · percentile 22 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-116 — Improper Encoding or Escaping of Output
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-xvp8-3mhv-424c — lxml-html-clean has <base> tag injection through default Cleaner configuration
- PYSEC-2026-2202 — 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
European references
- ENISA EUVD · EUVD-2026-20098
- GCVE · GCVE-0-2026-28350
CERT-FR advisories
- CERTFR-2026-AVI-0648 — Multiples vulnérabilités dans Kaspersky Anti Targeted Attack Platform · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:fedoralovespython:lxml_html_clean:*:*:*:*:*:python:*:*< 0.4.4
Affected products
| Product | Versions |
|---|---|
| fedora-python · lxml_html_clean | affected < 0.4.4 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |