8.2high
HTML Cleaner allows crafted and SVG embedded scripts to pass through
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 2.30% (higher than 83% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-55x5-fj6c-h6m8PYSEC-2021-852
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| lxml lxml | < 4.6.5, before 4.6.5 | CVE List, NVD |
| lxml (PyPI) | before 4.6.5, before f2330237440df7e8f39c3ad1b1aa8852be3b27c0, before 12fa9669007180a7bb87d990c375cf91ca5b664a, before a3eacbc0dcf1de1c822ec29fb7d090a4b1712a9c | GitHub Advisory Database, PyPA Advisory Database |
| fedoraproject fedora | 34, 35 | NVD |
| debian debian_linux | 9.0, 10.0, 11.0 | NVD |
| netapp solidfire | Not specified | NVD |
| netapp solidfire_enterprise_sds | Not specified | NVD |
| netapp hci_storage_node_firmware | Not specified | NVD |
| oracle communications_cloud_native_core_binding_support_function | 22.1.3 | NVD |
| oracle communications_cloud_native_core_network_exposure_function | 22.1.1 | NVD |
| oracle communications_cloud_native_core_policy | 22.2.0 | NVD |
| oracle http_server | 12.2.1.3.0, 12.2.1.4.0 | NVD |
| oracle zfs_storage_appliance_kit | 8.8 | NVD |
All scores
| GitHub_M | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N |
| GitHub | 8.2medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:H/SA:N |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
The issue has been resolved in lxml 4.6.5.
Workarounds
None.
References
The issues are tracked under the report IDs GHSL-2021-1037 and GHSL-2021-1038.
NVD (es)
lxml es una biblioteca para procesar XML y HTML en el lenguaje Python. En versiones anteriores a 4.6.5, el limpiador de HTML en lxml.html dejaba pasar determinado contenido de scripts manipulados, así como contenido de scripts en archivos SVG insertados usando URIs de datos. Los usuarios que empleen el limpiador de HTML en un contexto relevante para la seguridad deben actualizar a lxml versión 4.6.5 para recibir un parche. No se presentan soluciones conocidas disponibles
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-43818 changed 2025-12-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-55x5-fj6c-h6m8 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-43818 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-852 changed 2026-04-09 | CC-BY-4.0 |