CVE-2021-43818
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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| lxml | lxml | < 4.6.5 |
| lxml | lxml | 0 |
| alpine | py3-lxml | 0 |
| amazon:2023 | python3-lxml | 0 |
| amazon:2 | python-lxml-docs | 0 |
| PyPI | lxml | 0 |
| amazon:2 | python-lxml | 0 |
| arch | python-lxml | 0 |
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
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2021-6e8fb79f90 vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-9f9e7c5c4f vendor-advisoryx_refsource_FEDORA
- [debian-lts-announce] 20211230 [SECURITY] [DLA 2871-1] lxml security update mailing-listx_refsource_MLIST
- DSA-5043 vendor-advisoryx_refsource_DEBIAN
- FEDORA-2022-96c79bf003 vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-7129fbaeed vendor-advisoryx_refsource_FEDORA
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- GLSA-202208-06 vendor-advisoryx_refsource_GENTOO
- https://nvd.nist.gov/vuln/detail/CVE-2021-43818 advisory
- https://github.com/advisories/GHSA-55x5-fj6c-h6m8 advisory
- https://security.netapp.com/advisory/ntap-20220107-0005 advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQ4SPKJX3RRJK4UWA6FXCRHD2TVRQI44 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WZGNET2A4WGLSUXLBFYKNC5PXHQMI3I7 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/V2XMOM5PFT6U5AAXY6EFNT5JZCKKHK2V url
…and 3 more