First published: Tue Feb 20 2018(Updated: )
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.
Credit: mlhess@drupal.org mlhess@drupal.org
Affected Software | Affected Version | How to fix |
---|---|---|
composer/drupal/core | >=8.0<8.1.0>=8.1.0<8.2.0>=8.2.0<8.3.0>=8.3.0<8.4.0>=8.4.0<8.4.5 | |
composer/drupal/drupal | >=8.0<8.1.0>=8.1.0<8.2.0>=8.2.0<8.3.0>=8.3.0<8.4.0>=8.4.0<8.4.5 | |
debian/drupal7 | ||
debian/drupal7 | <=7.32-1<=7.56-1 | 7.57-1 7.52-2+deb9u2 7.32-1+deb8u10 |
composer/drupal/drupal | >=7.0<7.57 | 7.57 |
composer/drupal/drupal | >=8.4.0<8.4.5 | 8.4.5 |
composer/drupal/core | >=7.0<7.57 | 7.57 |
composer/drupal/core | >=8.4.0<8.4.5 | 8.4.5 |
Drupal | >=7.0<7.57 | |
Drupal | >=8.4.0<8.4.5 | |
Debian Linux | =7.0 | |
Debian Linux | =8.0 | |
Debian Linux | =9.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2017-6927 has a moderate severity level that could lead to potential cross-site scripting vulnerabilities.
To fix CVE-2017-6927, upgrade your Drupal installation to version 7.57 or 8.4.5 or later.
CVE-2017-6927 affects Drupal versions 8.4.x prior to 8.4.5 and 7.x prior to 7.57.
CVE-2017-6927 is a cross-site scripting (XSS) vulnerability due to improper handling of JavaScript output.
No, CVE-2017-6927 is considered a moderate vulnerability rather than critical.