Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. lxml-html-clean
  4. ›
  5. CVE-2026-28350

CVE-2026-28350: lxml-html-clean has <base> tag injection through default Cleaner configuration

March 2, 2026 (updated March 5, 2026)

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.

References

  • github.com/advisories/GHSA-xvp8-3mhv-424c
  • github.com/fedora-python/lxml_html_clean
  • github.com/fedora-python/lxml_html_clean/commit/9c5612ca33b941eec4178abf8a5294b103403f34
  • github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-xvp8-3mhv-424c
  • nvd.nist.gov/vuln/detail/CVE-2026-28350

Code Behaviors & Features

Detect and mitigate CVE-2026-28350 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.4

Fixed versions

  • 0.4.4

Solution

Upgrade to version 0.4.4 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output

Source file

pypi/lxml-html-clean/CVE-2026-28350.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:01 +0000.