ALPINE-CVE-2021-43818
Record from OSV · 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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| py3-lxml | Alpine:v3.23 | 4.6.5-r0 |
| py3-lxml | Alpine:v3.17 | 4.6.5-r0 |
| py3-lxml | Alpine:v3.21 | 4.6.5-r0 |
| py3-lxml | Alpine:v3.24 | 4.6.5-r0 |
| py3-lxml | Alpine:v3.20 | 4.6.5-r0 |
| py3-lxml | Alpine:v3.18 | 4.6.5-r0 |
| py3-lxml | Alpine:v3.16 | 4.6.5-r0 |
| py3-lxml | Alpine:v3.22 | 4.6.5-r0 |
| py3-lxml | Alpine:v3.19 | 4.6.5-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.23 | py3-lxml | 2.2.6-r0, 4.1.1-r0, 4.6.3-r0 |
| Alpine:v3.17 | py3-lxml | 2.2.6-r0, 2.3.4-r1, 4.2.2-r0 |
| Alpine:v3.21 | py3-lxml | 4.6.4-r0, 4.4.1-r1, 0 |
| Alpine:v3.24 | py3-lxml | 0 |
| Alpine:v3.20 | py3-lxml | 0, 2.2.6-r0, 2.2.8-r1 |
| Alpine:v3.18 | py3-lxml | 3.2.3-r0, 3.1.0-r0, 4.2.4-r0 |
| Alpine:v3.16 | py3-lxml | 3.7.1-r0, 2.3.4-r1, 2.3.5-r0 |
| Alpine:v3.22 | py3-lxml | 4.4.2-r0, 0, 2.2.6-r0 |
| Alpine:v3.19 | py3-lxml | 4.2.1-r0, 2.2.8-r0, 4.4.1-r1 |
Timeline
- Dec 13, 2021 CVE Published
- Jun 15, 2026 CVE Updated
- Aug 8, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln ALPINE-CVE-2021-43818
vulnetix vdb fixes ALPINE-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/ALPINE-CVE-2021-43818/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart