GitHub Advisoryadvisory · PyPI

GHSA-55x5-fj6c-h6m8 lxml's HTML Cleaner allows crafted and SVG embedded scripts to pass through

MEDIUM Published 2021-12-13 Modified 2024-09-30 Official page ↗
Aliases
CVE-2021-43818
Ecosystem
PyPI
Packages
lxml
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
Weaknesses
CWE-74, CWE-79
Reviewed
2021-12-13

Affected packages

• PyPI lxml: < 4.6.5 → fixed in 4.6.5

Description

Impact The HTML Cleaner in lxml.html lets certain crafted script content pass through, as well as script content in SVG files embedded using data URIs. Users that employ the HTML cleaner in a security relevant context should upgrade to lxml 4.6.5. Patches The issue has been resolved in lxml 4.6.5. Workarounds None. References The issues are tracked under the report IDs GHSL-2021-1037 and GHSL-2021-1038.

Related

Alias · CVE (1)

  • CVE-2021-43818 lxml is a library for processing XML and HTML in the Python language. vulnerability

Weakness · CWE (2)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References