ADVISORIES

Vulnerability

CVE-2021-28957

An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3.

41 advisories report this vulnerability, across 13 ecosystems.

Advisories in SUSE

  • 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
  • SUSE-SU-2022:3934-1

    Security update for python3-lxml

    CVE-2021-28957 SUSE Updated 4 February 2026
  • SUSE-SU-2022:3937-1

    Security update for python3-lxml

    CVE-2021-28957 SUSE Updated 4 February 2026
  • SUSEVEX-CVE-2021-28957

    An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS…

    Moderate CVE-2021-28957 SUSE Updated 6 November 2026

References