CVE-2018-19787

python-lxml: XSS in lxml.html.clean module in lxml/html/clean.py

Published Dec 2, 2018 CVSS 3.1 · 6.1 Medium EPSS 2.4% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1604-1 lxml security update
Debian DLA Debian DLA DLA-2467-1 lxml security update
EUVD EUVD EUVD-2018-0088 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.
Github GHSA Github GHSA GHSA-xp26-p53h-6h2p Improper Neutralization of Input During Web Page Generation in LXML
Ubuntu USN Ubuntu USN USN-3841-1 lxml vulnerability
Ubuntu USN Ubuntu USN USN-3841-2 lxml vulnerability
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics epss

{'score': 0.00288}

epss

{'score': 0.00274}

Type Values Removed Values Added
Metrics epss

{'score': 0.00303}

epss

{'score': 0.00288}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Dec 18, 2025, 3:15 PM
Reserved
Dec 2, 2018, 12:00 AM
Status
Modified
Published
Dec 2, 2018, 10:29 AM
Modified
Jun 17, 2026, 1:49 AM
Severity
Moderate
Public date
Sep 9, 2018, 12:00 AM