# CVE-2026-28350: lxml_html_clean: <base> tag injection through default Cleaner configuration

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-02T19:35:52.000Z
- Modified: 2026-09-10T03:50:41.927Z
- Also known as: GHSA-xvp8-3mhv-424c, PYSEC-2026-2202
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- fedora-python lxml_html_clean: < 0.4.4
- lxml-html-clean (PyPI): before 0.4.4
- fedoralovespython lxml_html_clean: before 0.4.4

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-xvp8-3mhv-424c> (exploit, evidence, vendor-advisory, web)
- <https://github.com/fedora-python/lxml_html_clean/commit/9c5612ca33b941eec4178abf8a5294b103403f34> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-28350> (advisory)
- <https://github.com/fedora-python/lxml_html_clean> (package)

## Sources

- CVE List: [CVE-2026-28350](https://www.cve.org/CVERecord?id=CVE-2026-28350), CVE Terms of Use, modified 2026-03-06
- GitHub Advisory Database: [GHSA-xvp8-3mhv-424c](https://github.com/advisories/GHSA-xvp8-3mhv-424c), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-28350](https://nvd.nist.gov/vuln/detail/CVE-2026-28350), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2202](https://osv.dev/vulnerability/PYSEC-2026-2202), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-28350 · Whole record: https://cve.day/CVE-2026-28350.json · Rebuilt by cve.day 2026-11-25T22:59:15.334Z
