CVE-2017-6927
Drupal cross-site scripting vulnerability
Reported by drupal · Published March 1, 2018
drupal/drupal is fixed in 8.4.5 and 7.57 (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| drupal/drupal | Packagist | 8.4.5, 7.57 |
| drupal/core | Packagist | 8.4.5, 7.57 |
| drupal | drupal | 8.4.5, 7.57 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Drupal.org | Drupal Core | 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57 |
| Drupal.org | Drupal Core | 8.4.x |
| drupal | drupal | 0 |
| drupal | core | 0 |
Timeline
- Mar 1, 2018 CVE Published
- Mar 22, 2018 CVE Updated
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Apr 6, 2026 Distribution Patch
- Apr 6, 2026 Security Advisory (2 in total, the first dated here)
- Sep 28, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-6927
vulnetix vdb fixes CVE-2017-6927
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-6927/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- DSA-4123 vendor-advisoryx_refsource_DEBIAN
- [debian-lts-announce] 20180228 [SECURITY] [DLA 1295-1] drupal7 security update mailing-listx_refsource_MLIST
- 103138 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2017-6927 advisory
- https://www.drupal.org/SA-CORE-2018-001 url