CVE-2017-6927
mediumpriority · track · 25EPSS 0.016 · 76 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (10)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-585j-5449-mf5mDrupal cross-site scripting vulnerability2022-05-14ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://www.drupal.org/sa-core-2018-001cnnvd
- http://www.securityfocus.com/bid/103138enisa_euvd
- https://lists.debian.org/debian-lts-announce/2018/02/msg00030.htmlenisa_euvd
- https://www.debian.org/security/2018/dsa-4123enisa_euvd
- https://www.drupal.org/sa-core-2018-001enisa_euvd
- http://www.securityfocus.com/bid/103138Third Party AdvisoryVDB Entrynvd
- https://lists.debian.org/debian-lts-announce/2018/02/msg00030.htmlMailing ListThird Party Advisorynvd
- https://www.debian.org/security/2018/dsa-4123Third Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan