Skip to main content
Network Thinking Solutions Logo

CVE-2021-43818

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.

All CVEs
CVE-2021-43818Published 12/13/2021

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.

Vendor advisory
CVSS8.2High

Overview

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
12/13/2021
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
lxml
lxml
< 4.6.5

Verify advisory

Source
fedora
fedoraproject
34

Verify advisory

Source
fedora
fedoraproject
35

Verify advisory

Source
debian linux
debian
9.0

Verify advisory

Source
debian linux
debian
10.0

Verify advisory

Source
debian linux
debian
11.0

Verify advisory

Source
solidfire
netapp
Range not specified — verify advisory

Verify advisory

Source
solidfire enterprise sds
netapp
Range not specified — verify advisory

Verify advisory

Source
hci storage node firmware
netapp
Range not specified — verify advisory

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
communications cloud native core binding support function
oracle
22.1.3

Verify advisory

Source
communications cloud native core network exposure function
oracle
22.1.1

Verify advisory

Source
communications cloud native core policy
oracle
22.2.0

Verify advisory

Source
http server
oracle
12.2.1.3.0

Verify advisory

Source
http server
oracle
12.2.1.4.0

Verify advisory

Source
zfs storage appliance kit
oracle
8.8

Verify advisory

Source
lxml
lxml
< 4.6.5

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 8.2. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.