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.

Project Subscriptions

Vendors Products
Debian Linux Subscribe
Fedoraproject Subscribe
Hci Storage Node Subscribe
Hci Storage Node Firmware Subscribe
Solidfire Subscribe
Solidfire Enterprise Sds Subscribe
Communications Cloud Native Core Binding Support Function Subscribe
Communications Cloud Native Core Network Exposure Function Subscribe
Communications Cloud Native Core Policy Subscribe
Http Server Subscribe
Zfs Storage Appliance Kit Subscribe
Enterprise Linux Subscribe
Rhel Software Collections Subscribe
Satellite Subscribe
Satellite Capsule Subscribe
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
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

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'}


Projects

Sign in to view the affected projects.

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