Drupal Cross-Site Scripting Vulnerability in drupal/core

drupal/core Updated 02 Oct 2025

Summary

14/05/2022
Yes i
Moderate
6.1

CVE-2017-6929: Drupal cross site scripting vulnerability. Affects drupal/core across 2 version ranges.

>= 7.0, < 7.57 >= 8.0, < 8.4.0

Fixed in 7.57 or 8.4.0, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Drupal is an open-source content management system (CMS) written in PHP. It is widely used for building websites and applications. The drupal/core package is a fundamental component of Drupal that provides core functionality and features. This package is vulnerable to a cross-site scripting (XSS) vulnerability when making Ajax requests to untrusted domains.

Vulnerability Detail

The vulnerability arises due to a jQuery XSS vulnerability that can be exploited when using contributed or custom modules. It is important to note that this vulnerability has already been fixed in Drupal 8.4.0 for Drupal 8 and in the current release (Drupal 7.57) for Drupal 7. The vulnerability is mitigated by the upgrade to jQuery 3 in Drupal 8.4.0 and the fix for jQuery 1.4.4 (the version that ships with Drupal 7 core) in Drupal 7.57. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 7.0, < 7.57 7.57
    composer require drupal/core:7.57
  • >= 8.0, < 8.4.0 8.4.0
    composer require drupal/core:8.4.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. The recommended solution is to apply the available updates as mentioned in the 'how_to_fix' section.

Conclusion

The Drupal core package is vulnerable to a cross-site scripting (XSS) vulnerability when making Ajax requests to untrusted domains. It is crucial to update to the latest version of Drupal 8 or Drupal 7, depending on your installation, to mitigate this vulnerability. Keeping all contributed and custom modules up to date is also important to ensure the overall security of your Drupal application. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for drupal/core →

Share this vulnerability

FAQ

Drupal is an open-source content management system (CMS) used for building websites and applications.

The drupal/core package is a fundamental component of Drupal that provides core functionality and features.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.

You can use Vulert's playground (https://vulert.com/scanner) to check if your Drupal installation is affected by this vulnerability. Simply upload your composer.lock file and Vulert will analyze it for vulnerabilities.

The CVSS score of this vulnerability is 6.1, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 7.0, < 7.57 7.57
    composer require drupal/core:7.57
  • >= 8.0, < 8.4.0 8.4.0
    composer require drupal/core:8.4.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback