Vulnerability Name:

CVE-2018-19787 (CCN-153601)

Assigned:2018-09-09
Published:2018-09-09
Updated:2020-11-26
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.
CVSS v3 Severity:6.1 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
5.8 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:H/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
6.1 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
5.8 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:H/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
5.5 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:P/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-79
Vulnerability Consequences:Cross-Site Scripting
References:Source: MITRE
Type: CNA
CVE-2018-19787

Source: XF
Type: UNKNOWN
lxml-cve201819787-xss(153601)

Source: CCN
Type: lxml GIT Repository
Fix: make the cleaner also remove javascript URLs that use escaping.

Source: MISC
Type: Patch, Vendor Advisory
https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109

Source: MLIST
Type: Mailing List, Third Party Advisory
[debian-lts-announce] 20181210 [SECURITY] [DLA 1604-1] lxml security update

Source: MLIST
Type: UNKNOWN
[debian-lts-announce] 20201126 [SECURITY] [DLA 2467-1] lxml security update

Source: UBUNTU
Type: Third Party Advisory
USN-3841-1

Source: UBUNTU
Type: Third Party Advisory
USN-3841-2

Vulnerable Configuration:Configuration 1:
  • cpe:/a:lxml:lxml:*:*:*:*:*:*:*:* (Version < 4.2.5)

  • Configuration 2:
  • cpe:/o:debian:debian_linux:8.0:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*

  • Configuration CCN 1:
  • cpe:/a:lxml:lxml:4.2.4:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:7775
    P
    python3-lxml-4.9.1-150500.1.2 on GA media (Moderate)
    2023-06-12
    oval:org.opensuse.security:def:3172
    P
    libfreebl3-3.45-58.31.1 on GA media (Moderate)
    2022-06-28
    oval:org.opensuse.security:def:94802
    P
    python3-lxml-4.7.1-3.7.1 on GA media (Moderate)
    2022-06-22
    oval:org.opensuse.security:def:6201
    P
    Security update for python-lxml (Moderate)
    2022-03-17
    oval:org.opensuse.security:def:93638
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:102148
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:org.opensuse.security:def:99225
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:119519
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:org.opensuse.security:def:94482
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:93169
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:100432
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:119031
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:org.opensuse.security:def:93849
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:968
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:org.opensuse.security:def:99499
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:119704
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:org.opensuse.security:def:93327
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:100766
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:119142
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:org.opensuse.security:def:94061
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:1588
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:org.opensuse.security:def:99761
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:93487
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:101660
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:org.opensuse.security:def:119336
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:org.opensuse.security:def:94275
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:100094
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:118841
    P
    Security update for python-lxml (Important)
    2022-03-10
    oval:com.ubuntu.bionic:def:201819787000
    V
    CVE-2018-19787 on Ubuntu 18.04 LTS (bionic) - medium.
    2018-12-02
    oval:com.ubuntu.cosmic:def:2018197870000000
    V
    CVE-2018-19787 on Ubuntu 18.10 (cosmic) - medium.
    2018-12-02
    oval:com.ubuntu.cosmic:def:201819787000
    V
    CVE-2018-19787 on Ubuntu 18.10 (cosmic) - medium.
    2018-12-02
    oval:com.ubuntu.bionic:def:2018197870000000
    V
    CVE-2018-19787 on Ubuntu 18.04 LTS (bionic) - medium.
    2018-12-02
    oval:com.ubuntu.trusty:def:201819787000
    V
    CVE-2018-19787 on Ubuntu 14.04 LTS (trusty) - medium.
    2018-12-02
    oval:com.ubuntu.xenial:def:2018197870000000
    V
    CVE-2018-19787 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-12-02
    oval:com.ubuntu.xenial:def:201819787000
    V
    CVE-2018-19787 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-12-02
    BACK
    lxml lxml *
    debian debian linux 8.0
    canonical ubuntu linux 14.04
    canonical ubuntu linux 16.04
    canonical ubuntu linux 18.04
    canonical ubuntu linux 12.04
    lxml lxml 4.2.4