CVE-2017-6927: XSS

Published 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.

Other sources

JavaScript cross-site scripting prevention is incomplete.

Affected Software

13 affected componentsFixes available
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-17.52-2+deb9u27.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 Drupal>=7.0<7.57
Drupal Drupal>=8.4.0<8.4.5
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0

Event History

Feb 20, 2018
Advisory Published
09:35 PM
Mar 1, 2018
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
DescriptionWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

Is CVE-2017-6927 a critical vulnerability?

No, CVE-2017-6927 is considered a moderate vulnerability rather than critical.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203