Live threats

All CVEs / Lxml

CVE-2021-43818Lxml

High 7.1 No auth needed

Priority
58
CVSS 3.1
7.1
EPSS
2.3%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Dec 13, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74, CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

What happens

lxml is a library for processing XML and HTML in the Python language. Prior to version 4.6.5, 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 to receive a patch. There are no known workarounds available.

Original NVD text.

What to do

  1. Apply the vendor's security update for Lxml.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI lxml < 4.6.5 4.6.5 pip install "lxml>=4.6.5"
PyPI lxml < 4.6.5 4.6.5 pip install "lxml>=4.6.5"

Per OSV / GitHub Advisories (GHSA-55x5-fj6c-h6m8, PYSEC-2021-852). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
lxmllxml< 4.6.5
fedoraprojectfedora34
fedoraprojectfedora35
debiandebian_linux9.0
debiandebian_linux10.0
debiandebian_linux11.0
netappsolidfireall
netappsolidfire_enterprise_sdsall
netapphci_storage_node_firmwareall
oraclecommunications_cloud_native_core_binding_support_function22.1.3
oraclecommunications_cloud_native_core_network_exposure_function22.1.1
oraclecommunications_cloud_native_core_policy22.2.0
oraclehttp_server12.2.1.3.0
oraclehttp_server12.2.1.4.0
oraclezfs_storage_appliance_kit8.8

Official sources

References

Links published by the sources. Open them with care.