Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-19787
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:43 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-19787
Complete source record
{
"id": "eac77ae61947742b2a7ca2284fe8a33e3fa3666113866d60c8c0f0f922c735c2",
"url": "https://osv.dev/vulnerability/CVE-2018-19787",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-19787",
"summary": "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.",
"evidence": "osv:CVE-2018-19787",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-19787",
"aliases": [
"CVE-2018-19787",
"GHSA-xp26-p53h-6h2p",
"PYSEC-2018-12"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/lxml/lxml",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "1dee355e83b1f524de7a772a8da941a186036bc2"
},
{
"fixed": "6be1d081b49c97cfd7b3fbd934a193b668629109"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:lxml:lxml:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "4.2.5"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "6be1d081b49c97cfd7b3fbd934a193b668629109"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"lxml-4.2.4",
"lxml-4.2.3-win",
"lxml-4.2.3",
"lxml-4.2.2",
"lxml-4.2.1",
"lxml-4.2.0",
"lxml-4.1.1",
"lxml-4.1.0",
"lxml-4.0.0",
"lxml-3.8.0-py27fix",
"lxml-3.8.0",
"lxml-3.7.2",
"lxml-3.7.1",
"lxml-3.7.0",
"lxml-3.6.1",
"lxml-3.6.0",
"lxml-3.5.0",
"lxml-3.5.0b1",
"lxml-3.4.1",
"lxml-3.4.0",
"lxml-3.4.0beta1",
"lxml-3.3.3",
"lxml-3.3.2",
"lxml-3.3.1",
"lxml-3.3.0",
"lxml-3.3.0beta5",
"lxml-3.3.0beta4",
"lxml-3.3.0beta3",
"lxml-3.3.0beta2",
"lxml-3.3.0beta1",
"lxml-3.2.3",
"lxml-3.2.2",
"lxml-3.2.1",
"lxml-3.2.0",
"lxml-3.1.1",
"lxml-3.1.0",
"lxml-3.1beta1",
"lxml-3.0.1",
"lxml-3.0",
"lxml-3.0beta1",
"lxml-3.0alpha2",
"lxml-3.0alpha1",
"lxml-2.3.1",
"lxml-2.3",
"lxml-2.3beta1",
"lxml-2.3alpha2",
"lxml-2.3alpha1",
"lxml-2.2.2",
"lxml-2.2.1",
"lxml-2.2",
"lxml-2.1",
"lxml-2.1beta3",
"lxml-2.1beta2",
"lxml-2.1beta1",
"lxml-2.1alpha1",
"lxml-2.0.1",
"lxml-2.0",
"lxml-2.0beta2",
"lxml-2.0beta1",
"lxml-2.0alpha6",
"lxml-2.0alpha5",
"lxml-2.0alpha4",
"lxml-2.0alpha3",
"lxml-2.0alpha2",
"lxml-2.0alpha1",
"lxml-1.2",
"lxml-1.1",
"lxml-1.1beta",
"lxml-1.1alpha",
"lxml-1.0",
"lxml-1.0.beta",
"lxml-0.9",
"lxml-0.7",
"lxml-0.6",
"lxml-0.5.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-19787.json"
}
}
],
"modified": "2026-10-20T10:51:34.750408673Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2020/11/msg00044.html",
"https://lists.debian.org/debian-lts-announce/2018/12/msg00001.html",
"https://usn.ubuntu.com/3841-1/",
"https://usn.ubuntu.com/3841-2/",
"https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "12.04"
},
{
"last_affected": "12.04"
},
{
"introduced": "14.04"
},
{
"last_affected": "14.04"
},
{
"introduced": "16.04"
},
{
"last_affected": "16.04"
},
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-19787",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 382593,
"published_at": "2018-12-02T10:29:00.227+00:00"
}