python-lxml: XSS in lxml.html.clean module in lxml/html/clean.py
Published Dec 2, 2018
5.3
MEDIUMCVSS 4.0
EPSS 2.44%
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.
Affected products
No data.
Configuration 2
- 8.0
Configuration 3
- 12.04
- 14.04
- 16.04
- 18.04
No data.
Red Hat Enterprise Linux 5
python-lxml
Will not fix
Red Hat Enterprise Linux 6
python-lxml
Will not fix
Red Hat Enterprise Linux 7
python-lxml
Will not fix
Red Hat Enterprise Linux 8
python-lxml
Will not fix
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)
python-lxml
Will not fix
Red Hat OpenStack Platform 10 (Newton)
python-lxml
Will not fix
Red Hat OpenStack Platform 12 (Pike)
python-lxml
Will not fix
Red Hat OpenStack Platform 13 (Queens)
python-lxml
Will not fix
Red Hat OpenStack Platform 14 (Rocky)
python-lxml
Affected
Red Hat OpenStack Platform 8 (Liberty)
python-lxml
Will not fix
Red Hat OpenStack Platform 9 (Mitaka)
python-lxml
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | python-lxml | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | python-lxml | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | python-lxml | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | python-lxml | Will not fix | n/a |
| Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) | python-lxml | Will not fix | n/a |
| Red Hat OpenStack Platform 10 (Newton) | python-lxml | Will not fix | n/a |
| Red Hat OpenStack Platform 12 (Pike) | python-lxml | Will not fix | n/a |
| Red Hat OpenStack Platform 13 (Queens) | python-lxml | Will not fix | n/a |
| Red Hat OpenStack Platform 14 (Rocky) | python-lxml | Affected | n/a |
| Red Hat OpenStack Platform 8 (Liberty) | python-lxml | Will not fix | n/a |
| Red Hat OpenStack Platform 9 (Mitaka) | python-lxml | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
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
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
AV:N/AC:M/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Dec 18, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.44% (0.02438) | 83.71th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.44% (0.02438) | 82.10th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.39% (0.00390) | 57.99th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.42% (0.00418) | 74.96th | v3 (v2023.03.01) |
| Jun 3, 2024 | 0.42% (0.00418) | 74.08th | v3 (v2023.03.01) |
| Apr 24, 2024 | 0.43% (0.00433) | 74.30th | v3 (v2023.03.01) |
| Apr 4, 2024 | 0.61% (0.00614) | 78.34th | v3 (v2023.03.01) |
| Nov 26, 2023 | 0.61% (0.00614) | 76.33th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.69% (0.00685) | 77.54th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.97% (0.00970) | 81.02th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.21% (0.01213) | 66.61th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.21% (0.01213) | 40.54th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.57% (0.01565) | 33.71th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.57% (0.01565) | 0.00th | v1 |
References (11)
- https://access.redhat.com/security/cve/CVE-2018-19787 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1660235 Issue Tracking
- https://github.com/advisories/GHSA-xp26-p53h-6h2p Advisory
- https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109 x_refsource_MISCPatchVendor Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2018-12.yaml
- https://lists.debian.org/debian-lts-announce/2018/12/msg00001.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/11/msg00044.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2018-19787
- https://usn.ubuntu.com/3841-1 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3841-2 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-19787
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2018-19787 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1660235 | Issue Tracking | |
| https://github.com/advisories/GHSA-xp26-p53h-6h2p | Advisory | |
| https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109 | x_refsource_MISCPatchVendor Advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2018-12.yaml | ||
| https://lists.debian.org/debian-lts-announce/2018/12/msg00001.html | mailing-listx_refsource_MLISTMailing ListThird Party Advisory | |
| https://lists.debian.org/debian-lts-announce/2020/11/msg00044.html | mailing-listx_refsource_MLIST | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-19787 | ||
| https://usn.ubuntu.com/3841-1 | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://usn.ubuntu.com/3841-2 | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-19787 |
Change history (0)
No recorded changes yet.