Security mailing lists by PureSourceCode

CVE-2021-43818

HIGH 7.1CVSS 3.1

lxml's HTML Cleaner allows crafted and SVG embedded scripts to pass through

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.

Published
13 Dec 2021
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-74CWE-79
Also known as
GHSA-55x5-fj6c-h6m8PYSEC-2021-852
Sources
NVDJSONOSV GHSA-55x5-fj6c-h6m8JSONOSV PYSEC-2021-852JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub 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 security-advisories@github.com (Secondary) CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD lxml lxml
cpe:2.3:a:lxml:lxml:*:*:*:*:*:*:*:*
< 4.6.5 4.6.5
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
= 11.0
NVD netapp solidfire
cpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:*
(no version)
NVD netapp solidfire_enterprise_sds
cpe:2.3:a:netapp:solidfire_enterprise_sds:-:*:*:*:*:*:*:*
(no version)
NVD netapp hci_storage_node_firmware
cpe:2.3:o:netapp:hci_storage_node_firmware:-:*:*:*:*:*:*:*
(no version)
NVD oracle communications_cloud_native_core_binding_support_function
cpe:2.3:a:oracle:communications_cloud_native_core_binding_support_function:22.1.3:*:*:*:*:*:*:*
= 22.1.3
NVD oracle communications_cloud_native_core_network_exposure_function
cpe:2.3:a:oracle:communications_cloud_native_core_network_exposure_function:22.1.1:*:*:*:*:*:*:*
= 22.1.1
NVD oracle communications_cloud_native_core_policy
cpe:2.3:a:oracle:communications_cloud_native_core_policy:22.2.0:*:*:*:*:*:*:*
= 22.2.0
NVD oracle http_server
cpe:2.3:a:oracle:http_server:12.2.1.3.0:*:*:*:*:*:*:*
= 12.2.1.3.0
NVD oracle http_server
cpe:2.3:a:oracle:http_server:12.2.1.4.0:*:*:*:*:*:*:*
= 12.2.1.4.0
NVD oracle zfs_storage_appliance_kit
cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*
= 8.8
OSV PyPI lxml < 4.6.5 4.6.5

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 13 Dec 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Dec 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Dec 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.