Description
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.
Published: 2021-12-13
Score: 8.2 High
EPSS: 4.1% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

No analysis available yet.

Remediation

No remediation available yet.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-2871-1 lxml security update
Debian DSA Debian DSA DSA-5043-1 lxml security update
EUVD EUVD EUVD-2021-0117 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.
Github GHSA Github GHSA GHSA-55x5-fj6c-h6m8 lxml's HTML Cleaner allows crafted and SVG embedded scripts to pass through
Ubuntu USN Ubuntu USN USN-5225-1 lxml vulnerability
History

Thu, 18 Dec 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Subscriptions

Debian Debian Linux
Fedoraproject Fedora
Lxml Lxml
Netapp Hci Storage Node Hci Storage Node Firmware Solidfire Solidfire Enterprise Sds
Oracle Communications Cloud Native Core Binding Support Function Communications Cloud Native Core Network Exposure Function Communications Cloud Native Core Policy Http Server Zfs Storage Appliance Kit
Redhat Enterprise Linux Rhel Software Collections Satellite Satellite Capsule
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-12-18T15:05:59.477Z

Reserved: 2021-11-16T00:00:00.000Z

Link: CVE-2021-43818

cve-icon Vulnrichment

Updated: 2024-08-04T04:03:08.992Z

cve-icon NVD

Status : Modified

Published: 2021-12-13T18:15:08.387

Modified: 2024-11-21T06:29:51.497

Link: CVE-2021-43818

cve-icon Redhat

Severity : Moderate

Publid Date: 2021-12-12T00:00:00Z

Links: CVE-2021-43818 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses