CVE-2021-43818 - CVE House
Back to Database
Status published High CVE-2021-43818

HTML Cleaner allows crafted and SVG embedded scripts to pass through

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-43818

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

lxml
Vulnerable Versions:
< 4.6.5

Timeline

Official Publish: December 13th, 2021
Last Modified: December 18th, 2025
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N

Weaknesses (CWE)