CVE-2017-6927: JavaScript cross-site scripting prevention is incomplete.
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.
Other sources
JavaScript cross-site scripting prevention is incomplete.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/drupal7to a version that resolves this vulnerability.Fixed in 7.57-1Fixed in 7.52-2+deb9u2Fixed in 7.32-1+deb8u10 - Upgrade
Upgrade
composer/drupal/drupalto a version that resolves this vulnerability.Fixed in 7.57 - Upgrade
Upgrade
composer/drupal/drupalto a version that resolves this vulnerability.Fixed in 8.4.5 - Upgrade
Upgrade
composer/drupal/coreto a version that resolves this vulnerability.Fixed in 7.57 - Upgrade
Upgrade
composer/drupal/coreto a version that resolves this vulnerability.Fixed in 8.4.5 - Upgrade
Upgrade
Drupal 8to a version that resolves this vulnerability.Fixed in 8.4.5 - Upgrade
Upgrade
Drupal 7to a version that resolves this vulnerability.Fixed in 7.57
Event History
Frequently Asked Questions
What is the severity of CVE-2017-6927?
CVE-2017-6927 has a moderate severity level that could lead to potential cross-site scripting vulnerabilities.
How do I fix CVE-2017-6927?
To fix CVE-2017-6927, upgrade your Drupal installation to version 7.57 or 8.4.5 or later.
Which versions of Drupal are affected by CVE-2017-6927?
CVE-2017-6927 affects Drupal versions 8.4.x prior to 8.4.5 and 7.x prior to 7.57.
What kind of vulnerability is CVE-2017-6927?
CVE-2017-6927 is a cross-site scripting (XSS) vulnerability due to improper handling of JavaScript output.
Is CVE-2017-6927 a critical vulnerability?
No, CVE-2017-6927 is considered a moderate vulnerability rather than critical.