CVE-2021-43818: HTML Cleaner allows crafted and SVG embedded scripts to pass through
Vulnerability summary
CVE-2021-43818 is a high (CVSS 8.2) vulnerability in debian debian_linux. EPSS estimates a 2.66% chance of exploitation in the next 30 days, higher than 85.7% of scored vulnerabilities.
Not severe (CVSS 8.2, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 7 · Related 4Timeline
- 13-12-2021PublishedVulnerability first disclosed.
- 18-12-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 7 sources · 3 versions- OSV · AlpineEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:LDiffers
- OSV · PypiEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
- OSV · Red hatEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:LDiffers
- NVDNIST7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:LDiffers
EPSS trend
Probability
2.66%
Chance of exploitation in the next 30 days
Percentile
86%
Versus all other CVEs
30-day change
Increase +0.19 pp
From 2.48% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream ComponentThe product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
- CWE-79Improper Neutralization of Input During Web Page GenerationThe product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat80 products
- mod_wsgi< 0:4.7.1-4.module+el8.4.0+9822+20bf1249
- numpy< 0:1.19.4-3.module+el8.5.0+12204+54860423
- numpy-debugsource< 0:1.19.4-3.module+el8.5.0+12204+54860423
- python-cffi< 0:1.14.3-2.module+el8.4.0+9822+20bf1249
- python-cffi-debugsource< 0:1.14.3-2.module+el8.4.0+9822+20bf1249
Oracle5 products
Netapp3 products
Debian2 products
- lxml< 4.3.2-1+deb10u4 | < 4.6.3+dfsg-0.1+deb11u1 | < 3.7.1-1+deb9u5 | < 4.7.1-1
- debian_linuxEOL9.0 | 10.0 | 11.0
Alpine1 product
- py3-lxml< 4.6.5-r0
Fedoraproject1 product
- fedoraEOL34 | 35
Lxml1 product
- lxml< 4.6.5
Mageia1 product
- python-lxml< 4.6.5-1.mga8
PyPI1 product
- lxml< 12fa9669007180a7bb87d990c375cf91ca5b664a | < a3eacbc0dcf1de1c822ec29fb7d090a4b1712a9c | < 4.6.5
Ubuntu1 product
- lxml< 4.7.1-1 | < 3.3.3-1ubuntu0.2+esm5 | < 3.5.0-1ubuntu0.4+esm2 | < 4.2.1-1ubuntu0.6 | < 4.5.0-1ubuntu0.5
10 vendors · 96 products
References
45 links- github.com/lxml/lxml/security/advisories/GHSA-55x5-fj6c-h6m8X Refsource CONFIRMWEBAdvisoryREPORTThird Party Advisory
- github.com/lxml/lxml/commit/12fa9669007180a7bb87d990c375cf91ca5b664aX Refsource MISCWEBFIXREPORTPatchThird Party Advisory
- github.com/lxml/lxml/commit/a3eacbc0dcf1de1c822ec29fb7d090a4b1712a9cX Refsource MISCWEBFIXREPORTPatchThird Party Advisory
- github.com/lxml/lxml/commit/f2330237440df7e8f39c3ad1b1aa8852be3b27c0X Refsource MISCWEBFIXREPORTPatchThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/12/msg00037.htmlMailing ListX Refsource MLISTWEBThird Party Advisory
Show all 45 references
- github.com/lxml/lxmlPACKAGE