Skip to content
OpenAdvisories
Medium · 6.1 CVE-2017-6927 EUVD-2022-2530GHSA-585j-5449-mf5m

Drupal cross-site scripting vulnerability

Published Mar 1, 2018 · Updated Sep 17, 2024 · Assigned by drupal

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 products

VendorProductAffectedFixed
Drupal.org Drupal Core 8.4.x versions before 8.4.5 and Drupal 7.x versions before 7.57 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 9 drupal7 7.52-2+deb9u2 DSA-4123-1
Debian 8 drupal7 7.32-1+deb8u10 DSA-4123-1
Debian 7 drupal7 7.14-2+deb7u17 DLA-1295-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS drupal7 No fix yet —
Ubuntu Pro 14.04 LTS drupal7 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist drupal/core >= 8.4.0, < 8.4.5 8.4.5 GHSA-585j-5449-mf5m
Packagist drupal/core >= 7.0, < 7.57 7.57 GHSA-585j-5449-mf5m
Packagist drupal/drupal >= 8.4.0, < 8.4.5 8.4.5 GHSA-585j-5449-mf5m
Packagist drupal/drupal >= 7.0, < 7.57 7.57 GHSA-585j-5449-mf5m

Advisories 2

References