VDB

CVE-2021-43818

CVE-2021-43818 PUBLISHED CVSS 8.2 HIGH

HTML Cleaner allows crafted and SVG embedded scripts to pass through

Reported by github_m · Published December 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.6.5 to receive a patch. There are no known workarounds available.

Risk scores

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

Affected products

VendorProductVersions
lxmllxml< 4.6.5
lxmllxml0
alpinepy3-lxml0
amazon:2023python3-lxml0
amazon:2python-lxml-docs0
PyPIlxml0
amazon:2python-lxml0
archpython-lxml0

Timeline

  • Dec 13, 2021 CVE Published
  • Dec 13, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (10 in total, the first dated here)
  • Jul 17, 2026 Coalition ESS Score
  • Oct 31, 2026 Distribution Patch (7 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-43818
vulnetix vdb fixes CVE-2021-43818

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-43818/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›