Skip to content

CVE-2017-6927 Drupal cross-site scripting vulnerability

MediumCVSS 6.1 EPSS 1.6% PoC
Published
Updated
Exploit status
Proof-of-concept only

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.

Affected products

ProductAffected versionsFixed in
drupal/core(Packagist) >= 8.4.0, < 8.4.5 8.4.5
drupal/core(Packagist) = 8.4.0 No fix listed
drupal/core(Packagist) = 8.4.1 No fix listed
drupal/core(Packagist) = 8.4.2 No fix listed
drupal/core(Packagist) = 8.4.3 No fix listed
drupal/core(Packagist) = 8.4.4 No fix listed
drupal/core(Packagist) >= 7.0, < 7.57 7.57
drupal/drupal(Packagist) >= 8.4.0, < 8.4.5 8.4.5
drupal/drupal(Packagist) = 8.4.0 No fix listed
drupal/drupal(Packagist) = 8.4.1 No fix listed
drupal/drupal(Packagist) = 8.4.2 No fix listed
drupal/drupal(Packagist) = 8.4.3 No fix listed
drupal/drupal(Packagist) = 8.4.4 No fix listed
drupal/drupal(Packagist) >= 7.0, < 7.57 7.57
drupal/drupal >= 7.0, < 7.57 7.57
drupal/drupal >= 8.4.0, < 8.4.5 8.4.5
debian linux = 7.0 No fix listed
debian linux = 8.0 No fix listed
debian linux = 9.0 No fix listed
Drupal.org Drupal Core = 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57 No fix listed

References