Live threats

All CVEs / Drupal

CVE-2017-6927Drupal

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Drupal.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
drupaldrupal≥ 7.0 < 7.57
drupaldrupal≥ 8.4.0 < 8.4.5
debiandebian_linux7.0
debiandebian_linux8.0
debiandebian_linux9.0

Official sources

References

Links published by the sources. Open them with care.