Skip to main content
← All vulnerabilities
CVE-2017-6927GHSA-585J-5449-MF5M

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.4.5, 7.57
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Drupal.org Drupal Core

    Version range not reported

  • drupal/corePackagist

    From 8.4.0 · fixed in 8.4.5

  • drupal/corePackagist

    From 7.0 · fixed in 7.57

  • drupal/drupalPackagist

    From 8.4.0 · fixed in 8.4.5

  • drupal/drupalPackagist

    From 7.0 · fixed in 7.57

References 4

debian.org

lists.debian.org

securityfocus.com

drupal.org