cve.bz

CVE-2018-19787 Cross-site Scripting

6.1 mediumEPSS 2.4%Fix available

Medium (6.1). EPSS 2.4% estimated probability of exploitation activity in the next 30 days. Fixed in lxml 4.2.5.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
2.4% (unchanged from 2.4% a week ago; 2.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-12-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-19787 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-19787?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-19787?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-19787 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
lxml:lxmlbefore 4.2.5
debian:debian_linux8.0
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xp26-p53h-6h2pPyPIlxml<4.2.54.2.5
PYSEC-2018-12PyPIlxml<4.2.54.2.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9lxml3.7.1-1+deb9u1DLA-2467-1
Debian12, 13, 14lxml4.2.5-1DEBIAN-CVE-2018-19787
Ubuntu14.04:LTSlxml3.3.3-1ubuntu0.2UBUNTU-CVE-2018-19787 USN-3841-1
Ubuntu16.04:LTSlxml3.5.0-1ubuntu0.1UBUNTU-CVE-2018-19787 USN-3841-1
Ubuntu18.04:LTSlxml4.2.1-1ubuntu0.1UBUNTU-CVE-2018-19787 USN-3841-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 9 morepython-lxml4.7.1-3.7.1SUSE-SU-2022:0803-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 2 morepython-lxml3.6.1-8.5.1SUSE-SU-2022:0895-1
SUSEOpenStack Cloud 9ardana-barbican9.0+git.1644879908.8a641c1-3.13.1SUSE-SU-2022:1729-1
SUSEOpenStack Cloud 9venv-openstack-barbican7.0.1~dev24-3.35.2SUSE-SU-2022:1729-1
SUSEOpenStack Cloud 9venv-openstack-cinder13.0.10~dev24-3.38.1SUSE-SU-2022:1729-1
SUSEOpenStack Cloud 9venv-openstack-designate7.0.2~dev2-3.35.1SUSE-SU-2022:1729-1
SUSEOpenStack Cloud 9venv-openstack-glance17.0.1~dev30-3.33.1SUSE-SU-2022:1729-1
SUSEOpenStack Cloud 9venv-openstack-heat11.0.4~dev4-3.35.1SUSE-SU-2022:1729-1
SUSEOpenStack Cloud 9venv-openstack-horizon14.1.1~dev11-4.39.1SUSE-SU-2022:1729-1
SUSEOpenStack Cloud 9venv-openstack-ironic11.1.5~dev18-4.33.1SUSE-SU-2022:1729-1
SUSEOpenStack Cloud 9venv-openstack-keystone14.2.1~dev9-3.36.1SUSE-SU-2022:1729-1
SUSEOpenStack Cloud 9venv-openstack-magnum7.2.1~dev1-4.35.1SUSE-SU-2022:1729-1
22 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3python-lxml4.7.1-3.7.1openSUSE-SU-2022:0803-1
Azure Linux2python-lxml4.8.0-1AZL-6806

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5python-lxmlWill not fix
Red Hat Enterprise Linux 6python-lxmlWill not fix
Red Hat Enterprise Linux 7python-lxmlWill not fix
Red Hat Enterprise Linux 8python-lxmlWill not fix
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)python-lxmlWill not fix
Red Hat OpenStack Platform 10 (Newton)python-lxmlWill not fix
Red Hat OpenStack Platform 12 (Pike)python-lxmlWill not fix
Red Hat OpenStack Platform 13 (Queens)python-lxmlWill not fix
Red Hat OpenStack Platform 14 (Rocky)python-lxmlAffected
Red Hat OpenStack Platform 8 (Liberty)python-lxmlWill not fix
Red Hat OpenStack Platform 9 (Mitaka)python-lxmlWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-19787.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON