ADVISORIES

Vulnerability

CVE-2018-19787

An issue was discovered in lxml before 4.2.5. lxml/html/clean.py in the lxml.html.clean module does not remove javascript: URLs that use escaping, allowing a remote attacker to conduct XSS attacks, as demonstrated by "j a v a s c r i p t:" in Internet Explorer. This is a similar issue to CVE-2014-3146.

13 advisories report this vulnerability, across 8 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
  • AZL-6806

    CVE-2018-19787 affecting package python-lxml for versions less than 4.8.0-1

    CVE-2018-19787 Azure Linux Updated 21 April 2026
  • DEBIAN-CVE-2018-19787

    An issue was discovered in lxml before 4.2.5. lxml/html/clean.py in the lxml.html.clean module does not remove javascript: URLs that use escaping, allowing a remote attacker to conduct XSS attacks, as demonstrated by "j…

    CVE-2018-19787 Debian Updated 23 October 2026
  • DLA-2467-1

    lxml - security update

    CVE-2018-19787CVE-2020-27783 Debian Updated 20 November 2026
  • GHSA-xp26-p53h-6h2p

    Improper Neutralization of Input During Web Page Generation in LXML

    Moderate CVE-2018-19787 PyPI Updated 20 December 2025
  • PYSEC-2018-12

    An issue was discovered in lxml before 4.2.5. lxml/html/clean.py in the lxml.html.clean module does not remove javascript: URLs that use escaping, allowing a remote attacker to conduct XSS attacks, as demonstrated by "j…

    CVE-2018-19787 PyPI Updated 8 November 2023
  • RHVEX-CVE-2018-19787

    python-lxml: XSS in lxml.html.clean module in lxml/html/clean.py

    Moderate CVE-2018-19787 Red Hat Updated 23 November 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-2018-19787

    An issue was discovered in lxml before 4.2.5. lxml/html/clean.py in the lxml.html.clean module does not remove javascript: URLs that use escaping, allowing a remote attacker to conduct XSS attacks, as demonstrated by "j…

    CVE-2018-19787 Ubuntu Updated 4 February 2026
  • USN-3841-1

    lxml vulnerability

    CVE-2018-19787 Ubuntu Updated 10 February 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