6.1med

CVE-2017-6927

Drupal cross-site scripting vulnerability

Also known as GHSA-585j-5449-mf5m

Published 8 y ago · modified 4 mo ago · JSON

CVSS
6.1
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.6%
percentile 76%
Public exploits
0
none known

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 byVersionScoreVector
NVD3.06.1CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD2.04.3AV:N/AC:M/Au:N/C:N/I:P/A:N
GitHub3.06.1CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

EcosystemPackageAffectedFixed in
packagistdrupal/core
>=8.4.0, <8.4.5
>=7.0, <7.57
8.4.5
7.57
packagistdrupal/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

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.