CVE-2017-6927
Drupal cross-site scripting vulnerability
Also known as GHSA-585j-5449-mf5m
Published 8 y ago · modified 4 mo ago · JSON
Summary
Drupal 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57 has a Drupal.checkPlain() JavaScript function which is used to escape potentially dangerous text before outputting it to HTML (as JavaScript output does not typically go through Twig autoescaping). This function does not correctly handle all methods of injecting malicious HTML, leading to a cross-site scripting vulnerability under certain circumstances. The PHP functions which Drupal provides for HTML escaping are not affected.
Exploit prediction (EPSS)
1.61% probability of exploitation in the next 30 days, higher than 76% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| packagist | drupal/core | >=8.4.0, <8.4.5 >=7.0, <7.57 | 8.4.5 7.57 |
| packagist | drupal/drupal | >=8.4.0, <8.4.5 >=7.0, <7.57 | 8.4.5 7.57 |
Affected products
- Drupal.org Drupal Core
Classification
- Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- debian.org /security/2018/dsa-4123 · vendor-advisory, x_refsource_DEBIAN, x_transferred
- lists.debian.org /debian-lts-announce/2018/02/msg00030.html · mailing-list, x_refsource_MLIST, x_transferred
- securityfocus.com /bid/103138 · vdb-entry, x_refsource_BID, x_transferred
- drupal.org /sa-core-2018-001 · x_refsource_CONFIRM, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2017-6927 · advisory
- github.com /FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2017-6927.yaml · web
- github.com /FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2017-6927.yaml · web
- github.com /drupal/core · package
Sources
- CVE List: CVE-2017-6927
- GitHub Advisory: GHSA-585j-5449-mf5m
- NVD: CVE-2017-6927
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.