CVE-2018-19787
MEDIUM 6.1CVSS 3.1Improper Neutralization of Input During Web Page Generation in LXML
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.
- Published
- 2 Dec 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-xp26-p53h-6h2pPYSEC-2018-12
- Sources
- NVDJSONOSV GHSA-xp26-p53h-6h2pJSONOSV PYSEC-2018-12JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lxml | lxmlcpe:2.3:a:lxml:lxml:*:*:*:*:*:*:*:* |
< 4.2.5 | 4.2.5 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:* |
= 12.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| OSV | PyPI | lxml | < 4.2.5 | 4.2.5 |
References
- https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109 · Patch, Vendor Advisory, WEB, FIX
- https://lists.debian.org/debian-lts-announce/2018/12/msg00001.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2020/11/msg00044.html · WEB
- https://usn.ubuntu.com/3841-1/ · Third Party Advisory, WEB
- https://usn.ubuntu.com/3841-2/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-19787 · ADVISORY
- https://github.com/advisories/GHSA-xp26-p53h-6h2p · ADVISORY
- https://github.com/lxml/lxml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2018-12.yaml · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 2 Dec 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Dec 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 May 2022)