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.23% (14th 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-17376629
  • published19 Jun 2026
  • disclosed5 Mar 2026

Introduced: 5 Mar 2026

CVE-2026-28348  (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 _has_sneaky_javascript() method strips backslashes before checking for dangerous CSS keywords. This causes CSS Unicode escape sequences to bypass the @import and expression() filters, allowing external CSS loading or XSS in older browsers. This issue has been patched in version 0.4.4.