CVE-2018-19787
Aliases:GHSA-xp26-p53h-6h2pPYSEC-2018-12
Advisory lineage Upstream: 0 Downstream: 9
Modified
Published: 02 Dec 2018, 10:00
Last modified:18 Dec 2025, 15:15
Vulnerability Summary
Overall Risk (default)
medium
25/100 CVSS Score
6.1 MEDIUM
v3.1 (cve.org)
EPSS Score
0.53% LOW
1% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
02 Dec 2018, 10:00
Published
Vulnerability first disclosed
18 Dec 2025, 15:15
Last Modified
Vulnerability information updated
Description
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.
CVSS Metrics
- v4.0•MEDIUM•Score: 5.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- v3.1•MEDIUM•Score: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- v3.0•MEDIUM•Score: 6.1CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- v2.0•MEDIUM•Score: 4.3AV:N/AC:M/Au:N/C:N/I:P/A:N
EPSS Trends
Current EPSS score: 0.53%• Percentile: 67%
Techniques & Countermeasures
- CWE-79•Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected Systems
- canonical•ubuntu_linux
12.04 | 14.04 | 16.04 | 18.04
- debian•debian_linux
8.0
- lxml•lxml
< 4.2.5
- PyPI•lxml
< 6be1d081b49c97cfd7b3fbd934a193b668629109 | < 4.2.5
References (11)
- https://usn.ubuntu.com/3841-1/
- https://lists.debian.org/debian-lts-announce/2018/12/msg00001.html
- https://usn.ubuntu.com/3841-2/
- https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109
- https://lists.debian.org/debian-lts-announce/2020/11/msg00044.html
- https://nvd.nist.gov/vuln/detail/CVE-2018-19787
- https://github.com/advisories/GHSA-xp26-p53h-6h2p
- https://github.com/lxml/lxml
- https://github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2018-12.yaml
- https://usn.ubuntu.com/3841-1
- https://usn.ubuntu.com/3841-2