{"id":"CVE-2018-19787","published":"2018-12-02T10:00:00Z","modified":"2025-12-18T15:15:39Z","title":"An issue was discovered in lxml before 4.2.5. lxml/html/clean.py in the lxml.html.clean module does not remove…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02427,"percentile":0.84608,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://usn.ubuntu.com/3841-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00001.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://usn.ubuntu.com/3841-2/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00044.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":16.92},{"name":"CVSS severity","points":4.27}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-18T15:15:33.654233Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lxml","vulnerableRanges":["<4.2.5"],"patched":["4.2.5"],"from":["GHSA-xp26-p53h-6h2p","PYSEC-2018-12"],"provenance":"source"}],"summary":{"text":"The lxml.html.clean module in lxml versions before 4.2.5 fails to strip javascript: URLs that use escaping, such as \"j a v a s c r i p t:\" in Internet Explorer. An attacker over the network can conduct cross-site scripting by getting a user to interact with the crafted content, and no authentication is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:37Z"},"euvd":{"id":"EUVD-2018-0088","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-lxml-cve-2014-3146","parents":[{"from":"CVE-2014-3146","to":"CVE-2018-19787","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This is a similar issue to CVE-2014-3146.","from":"CVE.org","in":"CVE-2018-19787"},{"kind":"same-code","provenance":"machine","files":["src/lxml/html/clean.py"],"commits":["https://github.com/lxml/lxml/commit/3f3082e0a67851cde26a48da3d1f4b75d8aa07ec","https://github.com/lxml/lxml/commit/86e81ab393ba14c1be71284675851a3bdce57d69","https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109"],"basis":"shared function","functions":["_kill_elements"]}]}]}}