CVE-2021-43818

HTML Cleaner allows crafted and SVG embedded scripts to pass through

HIGH
7.1
CVSS Score
Published: December 13, 2021 at 06:05 PM UTC
Updated: June 17, 2026 at 04:11 AM UTC
12 products affected across 5 vendorsDebian LinuxFedoraSolidfire

Using lxml by lxml?

Get instant alerts when new vulnerabilities affect lxml - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-74CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card