ADVISORIES

Vulnerability

CVE-2021-43818

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.

38 advisories report this vulnerability, across 13 ecosystems.

Advisories

  • ALAS2-2023-1956

    Amazon Linux 2 2017.12 - ALAS2-2023-1956: important priority package update for python-lxml

    Important CVE-2014-3146CVE-2018-19787CVE-2021-43818 Amazon Linux Updated 7 March 2025
  • ALAS2023-2023-034

    Amazon Linux 2023 - ALAS2023-2023-034: Important priority package update for python-lxml

    Important CVE-2021-43818CVE-2022-2309 Amazon Linux Updated 22 February 2023
  • ALPINE-CVE-2021-43818

    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…

    CVE-2021-43818 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2021-43818
    CVE-2021-43818 Alpine Updated 18 November 2026
  • ALSA-2022:1763

    Moderate: python39:3.9 and python39-devel:3.9 security update

    CVE-2021-43818 AlmaLinux Updated 2 November 2026
  • ALSA-2022:1764

    Moderate: python38:3.8 and python38-devel:3.8 security update

    CVE-2021-3733CVE-2021-3737CVE-2021-43818CVE-2022-0391 AlmaLinux Updated 29 October 2026
  • ALSA-2022:1821

    Moderate: python27:2.7 security update

    CVE-2021-3733CVE-2021-3737CVE-2021-4189CVE-2021-43818 AlmaLinux Updated 29 October 2026
  • ALSA-2022:1932

    Moderate: python-lxml security update

    CVE-2021-43818 AlmaLinux Updated 29 October 2026
  • AZL-7025

    CVE-2021-43818 affecting package python-lxml for versions less than 4.8.0-1

    CVE-2021-43818 Azure Linux Updated 21 April 2026
  • DEBIAN-CVE-2021-43818

    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…

    CVE-2021-43818 Debian Updated 23 October 2026
  • DLA-2871-1

    lxml - security update

    CVE-2021-43818 Debian Updated 20 November 2026
  • DSA-5043-1

    lxml - security update

    CVE-2021-43818 Debian Updated 20 November 2026
  • ELSA-2022-1763

    ELSA-2022-1763: python39:3.9 and python39-devel:3.9 security update (MODERATE)

    Moderate CVE-2021-43818 Oracle Linux Updated 17 May 2022
  • ELSA-2022-1764

    ELSA-2022-1764: python38:3.8 and python38-devel:3.8 security update (MODERATE)

    Moderate CVE-2021-3733CVE-2021-3737CVE-2021-43818CVE-2022-0391 Oracle Linux Updated 17 May 2022
  • ELSA-2022-1821

    ELSA-2022-1821: python27:2.7 security update (MODERATE)

    Moderate CVE-2021-3733CVE-2021-3737CVE-2021-4189CVE-2021-43818 Oracle Linux Updated 17 May 2022
  • ELSA-2022-1932

    ELSA-2022-1932: python-lxml security update (MODERATE)

    Moderate CVE-2021-43818 Oracle Linux Updated 17 May 2022
  • ELSA-2022-9341

    ELSA-2022-9341: ol-automation-manager security update (IMPORTANT)

    Important CVE-2017-18342CVE-2020-10108CVE-2020-10109CVE-2020-27783 Oracle Linux Updated 27 April 2022
  • GHSA-55x5-fj6c-h6m8

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

    Moderate CVE-2021-43818 PyPI Updated 8 July 2026
  • OESA-2022-1482

    python-lxml security update

    High CVE-2021-43818 openEuler Updated 18 August 2026
  • PYSEC-2021-852

    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…

    CVE-2021-43818 PyPI Updated 9 April 2026
  • RHSA-2022:1664

    Red Hat Security Advisory: Red Hat Software Collections security update

    CVE-2021-43818 Red Hat Updated 13 November 2026
  • RHSA-2022:1763

    Red Hat Security Advisory: python39:3.9 and python39-devel:3.9 security update

    CVE-2021-43818 Red Hat Updated 13 November 2026
  • RHSA-2022:1764

    Red Hat Security Advisory: python38:3.8 and python38-devel:3.8 security update

    CVE-2021-3733CVE-2021-3737CVE-2021-43818CVE-2022-0391 Red Hat Updated 23 November 2026
  • RHSA-2022:1821

    Red Hat Security Advisory: python27:2.7 security update

    CVE-2021-3733CVE-2021-3737CVE-2021-4189CVE-2021-43818 Red Hat Updated 23 November 2026
  • RHSA-2022:1932

    Red Hat Security Advisory: python-lxml security update

    CVE-2021-43818 Red Hat Updated 13 November 2026
  • RHSA-2022:5498

    Red Hat Security Advisory: Satellite 6.11 Release

    CVE-2021-21290CVE-2021-21295CVE-2021-21409CVE-2021-30151 Red Hat Updated 13 November 2026
  • RHVEX-CVE-2021-43818

    python-lxml: HTML Cleaner allows crafted and SVG embedded scripts to pass through

    Moderate CVE-2021-43818 Red Hat Updated 7 November 2026
  • RLSA-2022:1763

    Moderate: python39:3.9 and python39-devel:3.9 security update

    CVE-2021-43818 Rocky Linux Updated 5 February 2026
  • RLSA-2022:1764

    Moderate: python38:3.8 and python38-devel:3.8 security update

    CVE-2021-3733CVE-2021-3737CVE-2021-43818CVE-2022-0391 Rocky Linux Updated 4 February 2026
  • RLSA-2022:1821

    Moderate: python27:2.7 security update

    CVE-2021-3733CVE-2021-3737CVE-2021-4189CVE-2021-43818 Rocky Linux Updated 4 February 2026
  • RLSA-2022:1932

    Moderate: python-lxml security update

    CVE-2021-43818 Rocky Linux Updated 5 February 2026
  • RLSA-2022:5498

    Moderate: Satellite 6.11 Release

    CVE-2021-21290CVE-2021-21295CVE-2021-21409CVE-2021-30151 Rocky Linux Updated 5 February 2026
  • SUSE-SU-2022:0803-1

    Security update for python-lxml

    CVE-2018-19787CVE-2020-27783CVE-2021-28957CVE-2021-43818 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0895-1

    Security update for python-lxml

    CVE-2018-19787CVE-2020-27783CVE-2021-28957CVE-2021-43818 SUSE Updated 4 February 2026
  • SUSE-SU-2022:1729-1

    Security update for ardana-barbican, grafana, openstack-barbican, openstack-cinder, openstack-heat-gbp, openstack-horizon-plugin-gbp-ui, openstack-ironic, openstack-keystone, openstack-neutron-gbp, python-lxml,…

    CVE-2018-19787CVE-2020-27783CVE-2021-28957CVE-2021-38155 SUSE Updated 4 February 2026
  • UBUNTU-CVE-2021-43818

    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…

    CVE-2021-43818 Ubuntu Updated 5 February 2026
  • USN-5225-1

    lxml vulnerability

    CVE-2021-43818 Ubuntu Updated 29 June 2026
  • openSUSE-SU-2022:0803-1

    Security update for python-lxml

    CVE-2018-19787CVE-2020-27783CVE-2021-28957CVE-2021-43818 openSUSE Updated 4 February 2026

References