CVE-2017-6927Drupal
Medium 6.1 No auth needed
Follow: this CVE · Drupal · Drupal We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.0
- 6.1
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- No
- Published
- Mar 1, 2018
- Updated
- Jun 17, 2026
- Category
- Web application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Drupal.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | drupal/core |
≥ 8.4.0 < 8.4.5 |
8.4.5 |
composer require "drupal/core:^8.4.5" |
| Packagist | drupal/core |
≥ 7.0 < 7.57 |
7.57 |
composer require "drupal/core:^7.57" |
| Packagist | drupal/drupal |
≥ 8.4.0 < 8.4.5 |
8.4.5 |
composer require "drupal/drupal:^8.4.5" |
| Packagist | drupal/drupal |
≥ 7.0 < 7.57 |
7.57 |
composer require "drupal/drupal:^7.57" |
Per OSV / GitHub Advisories (GHSA-585j-5449-mf5m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| drupal | drupal | ≥ 7.0 < 7.57 |
| drupal | drupal | ≥ 8.4.0 < 8.4.5 |
| debian | debian_linux | 7.0 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com Third Party Advisory VDB Entry
- lists.debian.org Mailing List Third Party Advisory
- www.debian.org Third Party Advisory
- www.drupal.org Vendor Advisory