CVE-2018-19787
published medium CVSS 3.1 · 6.1python-lxml: XSS in lxml.html.clean module in lxml/html/clean.py
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-1956 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | stretch | lxml | Advisory build | 3.7.1-1+deb9u1 | DLA-2467-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-lxmlaarch64 | Advisory build | 3.6.1-8.5.1 | SUSE-SU-2022:0895-1 |
| Ubuntu | bionic | lxml | Advisory build | 4.2.1-1ubuntu0.1 | USN-3841-1 |
| Amazon Linux | AL2 | python-lxmlaarch64 | Listed in advisory | Not stated | ALAS2-2023-1956 |
| SUSE / openSUSE | SLE-12-SP5 | python-lxmlppc64le | Advisory build | 3.6.1-8.5.1 | SUSE-SU-2022:0895-1 |
Show 90 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | python-lxmls390x | Advisory build | 3.6.1-8.5.1 | SUSE-SU-2022:0895-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-lxmlx86_64 | Advisory build | 3.6.1-8.5.1 | SUSE-SU-2022:0895-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxmlaarch64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxmlppc64le | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxmls390x | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxmlx86_64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxml-develaarch64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxml-develppc64le | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxml-devels390x | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxml-develx86_64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxmlaarch64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxmlppc64le | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxmls390x | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxmlx86_64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxml-develaarch64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxml-develppc64le | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxml-devels390x | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxml-develx86_64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxmlaarch64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxmlppc64le | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxmls390x | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxmlx86_64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxml-develaarch64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxml-develppc64le | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxml-devels390x | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxml-develx86_64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxmlaarch64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxmlppc64le | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxmls390x | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxmlx86_64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxml-develaarch64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxml-develppc64le | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxml-devels390x | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxml-develx86_64 | Advisory build | 4.7.1-3.7.1 | SUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxmlaarch64 | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxmlppc64le | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxmls390x | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxmlx86_64 | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxml-develaarch64 | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxml-develppc64le | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxml-devels390x | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxml-develx86_64 | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxmlaarch64 | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxmlppc64le | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxmls390x | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxmlx86_64 | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxml-develaarch64 | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxml-develppc64le | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxml-devels390x | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxml-develx86_64 | Advisory build | 4.7.1-3.7.1 | OPENSUSE-SU-2022:0803-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-lxml-docaarch64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-lxml-docppc64le | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-lxml-docs390x | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python-lxml-docx86_64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-lxmlaarch64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-lxmlppc64le | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-lxmls390x | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-lxmlx86_64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-lxml-develaarch64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-lxml-develppc64le | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-lxml-devels390x | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-lxml-develx86_64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-lxmlaarch64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-lxmlppc64le | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-lxmls390x | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-lxmlx86_64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-lxml-develaarch64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-lxml-develppc64le | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-lxml-devels390x | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-lxml-develx86_64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-lxmlaarch64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-lxmlppc64le | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-lxmls390x | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-lxmlx86_64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-lxml-develaarch64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-lxml-develppc64le | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-lxml-devels390x | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-lxml-develx86_64 | Advisory build | 4.9.1-4.1 | OPENSUSE-SU-2024:12414-1 |
| Ubuntu | bionic | python-lxml | Advisory build | 4.2.1-1ubuntu0.1 | USN-3841-1 |
| Ubuntu | bionic | python3-lxml | Advisory build | 4.2.1-1ubuntu0.1 | USN-3841-1 |
| Ubuntu | trusty | lxml | Advisory build | 3.3.3-1ubuntu0.2 | USN-3841-1 |
| Ubuntu | trusty | python-lxml | Advisory build | 3.3.3-1ubuntu0.2 | USN-3841-1 |
| Ubuntu | trusty | python3-lxml | Advisory build | 3.3.3-1ubuntu0.2 | USN-3841-1 |
| Ubuntu | xenial | lxml | Advisory build | 3.5.0-1ubuntu0.1 | USN-3841-1 |
| Ubuntu | xenial | python-lxml | Advisory build | 3.5.0-1ubuntu0.1 | USN-3841-1 |
| Ubuntu | xenial | python3-lxml | Advisory build | 3.5.0-1ubuntu0.1 | USN-3841-1 |
| Amazon Linux | AL2 | python-lxmli686 | Listed in advisory | Not stated | ALAS2-2023-1956 |
| Amazon Linux | AL2 | python-lxmlnoarch | Listed in advisory | Not stated | ALAS2-2023-1956 |
| Amazon Linux | AL2 | python-lxmlsrc | Listed in advisory | Not stated | ALAS2-2023-1956 |
| Amazon Linux | AL2 | python-lxmlx86_64 | Listed in advisory | Not stated | ALAS2-2023-1956 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
5- https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109
- [debian-lts-announce] 20181210 [SECURITY] [DLA 1604-1] lxml security update https://lists.debian.org/debian-lts-announce/2018/12/msg00001.html
- [debian-lts-announce] 20201126 [SECURITY] [DLA 2467-1] lxml security update https://lists.debian.org/debian-lts-announce/2020/11/msg00044.html
- USN-3841-1 https://usn.ubuntu.com/3841-1/
- USN-3841-2 https://usn.ubuntu.com/3841-2/
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1b936e8c37c78d5d84b291d3537ded39f7bd4e4b5f93d50fe5fa94fb0caf000d
- Ingested
- 23 Sep 2026, 07:44:11 UTC
- Source record
- Official CVE record