Rapid7 Vulnerability & Exploit Database

Drupal: CVE-2017-6927: JavaScript cross-site scripting prevention is incomplete

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

Drupal: CVE-2017-6927: JavaScript cross-site scripting prevention is incomplete

Severity
4
CVSS
(AV:N/AC:M/Au:N/C:N/I:P/A:N)
Published
03/01/2018
Created
03/19/2019
Added
08/08/2018
Modified
04/02/2019

Description

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.

Solution(s)

  • drupal-upgrade-7_57
  • drupal-upgrade-8_4_5

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;