CWE
79
Advisory Published
CVE Published
Updated

CVE-2017-6927: XSS

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203