Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2017-6927

MEDIUM 6.1EPSS 76%

Drupal cross-site scripting vulnerability

Also known as GHSA-585j-5449-mf5m

Mitigation

  • Upgrade drupal/core to one of 8.4.5, 7.57 (or later in the same release line).
  • Upgrade drupal/drupal to one of 8.4.5, 7.57 (or later in the same release line).

Who should check

  • Projects that depend on Packagist package drupal/core (>= 8.4.0, < 8.4.5)
  • Projects that depend on Packagist package drupal/drupal (>= 8.4.0, < 8.4.5)
  • Anyone running Drupal.org Drupal Core 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57

Vulnerability facts

Affected
drupal/core >= 8.4.0, < 8.4.5; drupal/drupal >= 8.4.0, < 8.4.5
Fixed in
8.4.5, 7.57
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.1 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
EPSS
1.61% chance of exploitation in 30 days (percentile 76, 2026-11-26)
CWE
CWE-79
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Packagist drupal/core>= 8.4.0, < 8.4.58.4.5, 7.57osv
Packagist drupal/drupal>= 8.4.0, < 8.4.58.4.5, 7.57osv
Drupal.org Drupal Core8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2017-6927. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2017-6927.md
Affected: drupal/core >= 8.4.0, < 8.4.5; drupal/drupal >= 8.4.0, < 8.4.5
Fixed in: 8.4.5, 7.57

Steps:
1. Search this machine and project for drupal/core (Packagist), drupal/drupal (Packagist), Drupal.org Drupal Core: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2017-6927 being exploited?

There is no confirmed exploitation: CVE-2017-6927 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.61% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2017-6927?

Medium: CVSS 6.1 (v3.0, scored by NVD). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2017-6927?

drupal/core >= 8.4.0, < 8.4.5; drupal/drupal >= 8.4.0, < 8.4.5.

Is there a fix for CVE-2017-6927?

Yes. Fixed in 8.4.5, 7.57. Upgrade drupal/core to one of 8.4.5, 7.57 (or later in the same release line). Upgrade drupal/drupal to one of 8.4.5, 7.57 (or later in the same release line).

How do I check if I'm affected by CVE-2017-6927?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors