Security readout for executives and security teams
Plain-English summary
Older lxml versions could miss malicious links when cleaning HTML. If a service accepts untrusted HTML, sanitizes it with lxml.html.clean, and shows it to users, an attacker could still cause browser-side script execution. This is mainly a web application trust and content-safety issue, not a server takeover issue.
Executive priority
Treat as a moderate-priority remediation for internet-facing or customer-content web applications. Prioritize systems that display sanitized user HTML, collaboration content, profile fields, comments, or imported documents.
Technical view
CVE-2018-19787 affects lxml before 4.2.5 in lxml/html/clean.py. The cleaner failed to remove escaped javascript: URL schemes, enabling cross-site scripting when sanitized HTML is rendered. The CVSS 3.1 score is 6.1, with network attack vector, low complexity, no privileges required, and user interaction required.
Likely exposure
Exposure is most likely in Python applications that use lxml.html.clean to sanitize untrusted or user-supplied HTML before rendering it in browsers. Systems only parsing trusted XML or HTML without using the cleaner are less likely to be affected based on the supplied evidence.
Exploitation context
The source bundle does not show CISA KEV listing or cited active exploitation. Exploitation requires attacker-controlled HTML, affected sanitization behavior, and a user or browser rendering the resulting content. Impact is confidentiality and integrity loss through XSS in the application's browser context.
Researcher notes
Affected metadata in the bundle is sparse, but the description clearly names lxml before 4.2.5 and the vulnerable module. Validate actual exposure by confirming use of lxml.html.clean, not just package presence. The issue is similar to CVE-2014-3146 per the CVE description.
Mitigation direction
- Upgrade lxml to 4.2.5 or a vendor-supported fixed package.
- Apply relevant Ubuntu or Debian security updates where those distributions manage lxml.
- Review vendor guidance for supported backported fixes in older operating system releases.
- Add defense-in-depth output encoding and content security controls for rendered user HTML.
Validation and detection
- Inventory applications and containers for lxml versions before 4.2.5.
- Identify code paths using lxml.html.clean on untrusted HTML.
- Confirm distribution package versions include the referenced security update or backport.
- Add regression tests ensuring escaped script URL schemes are removed during sanitization.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-79: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCVE-2018-19787 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 6.1 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N2.82.7Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
6.1MediumVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Source materials
- CVE List V5 sourceCVE List V5
- USN-3841-1CVE reference · vendor-advisory, x_refsource_UBUNTU
- [debian-lts-announce] 20181210 [SECURITY] [DLA 1604-1] lxml security updateCVE reference · mailing-list, x_refsource_MLIST
- USN-3841-2CVE reference · vendor-advisory, x_refsource_UBUNTU
- https://github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109CVE reference · x_refsource_MISC
- [debian-lts-announce] 20201126 [SECURITY] [DLA 2467-1] lxml security updateCVE reference · mailing-list, x_refsource_MLIST
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
