Cross-site Scripting (XSS) Affecting drupal/core package, versions >=7.0, <7.57 >=8.0, <8.4.5


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required
    Scope Changed

    Threat Intelligence

    EPSS 0.22% (60th percentile)
Expand this section
NVD
6.1 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PHP-DRUPALCORE-72091
  • published 6 Mar 2018
  • disclosed 1 Mar 2018
  • credit Grant Gaudet

How to fix?

Upgrade drupal/core to version 7.57, 8.4.5 or higher.

Overview

drupal/core is an an open source content management platform powering millions of websites and applications.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) when using the 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.