Improper Encoding or Escaping of Output Affecting lxml package, versions <5.2.0-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.25% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-LXML-17376624
  • published19 Jun 2026
  • disclosed5 Mar 2026

Introduced: 5 Mar 2026

CVE-2026-28350  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade Debian:unstable lxml to version 5.2.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream lxml package and not the lxml package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.