CVE-2026-28350
MEDIUM 6.1CVSS 3.1lxml-html-clean has <base> tag injection through default Cleaner configuration
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.
- Published
- 5 Mar 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-116
- Also known as
- GHSA-xvp8-3mhv-424cPYSEC-2026-2202
- Sources
- NVDJSONOSV GHSA-xvp8-3mhv-424cJSONOSV PYSEC-2026-2202JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | 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 |
| OSV | GitHub | 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 |
| OSV | PyPA | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fedoralovespython | lxml_html_cleancpe:2.3:a:fedoralovespython:lxml_html_clean:*:*:*:*:*:python:*:* |
< 0.4.4 | 0.4.4 |
| OSV | PyPI | lxml-html-clean | < 0.4.4 | 0.4.4 |
References
- https://github.com/fedora-python/lxml_html_clean/commit/9c5612ca33b941eec4178abf8a5294b103403f34 · Patch, WEB, FIX
- https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-xvp8-3mhv-424c · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-28350 · ADVISORY
- https://github.com/fedora-python/lxml_html_clean · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 5 Mar 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Mar 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Mar 2026)