Drupal Core Cross-site Scripting (XSS) Vulnerability

drupal/core Updated 02 Oct 2025

Summary

12/02/2022
Yes i
Moderate
6.1

CVE-2020-13672: Drupal core Cross-site Scripting (XSS) vulnerability. Affects drupal/core across 4 version ranges.

>= 7.0.0, < 7.80 >= 8.0.0, < 8.9.14 >= 9.0.0, < 9.0.12 >= 9.1.0, < 9.1.7

Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Also tracked for

The same CVE-2020-13672 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Drupal Core is a content management system (CMS) that allows users to create and manage websites. It provides a wide range of features and functionality, making it a popular choice for building websites of all sizes. However, Drupal Core is vulnerable to a Cross-site Scripting (XSS) vulnerability, which can allow attackers to inject malicious scripts into web pages viewed by users. This vulnerability affects Drupal Core versions 7.x, 8.x, and 9.x.

Vulnerability Detail

The Cross-site Scripting (XSS) vulnerability in Drupal Core's sanitization API allows attackers to bypass the filtering mechanism and inject malicious scripts into web pages. This can lead to various security risks, including unauthorized access to sensitive information, session hijacking, and the execution of arbitrary code. 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.0, < 7.80 7.80
    composer require drupal/core:7.80
  • >= 8.0.0, < 8.9.14 8.9.14
    composer require drupal/core:8.9.14
  • >= 9.0.0, < 9.0.12 9.0.12
    composer require drupal/core:9.0.12
  • >= 9.1.0, < 9.1.7 9.1.7
    composer require drupal/core:9.1.7

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

Workaround

If immediate updating is not possible, a temporary workaround is to implement additional input validation and output encoding measures in custom code and templates. This can help mitigate the risk of XSS attacks. Here is an example of how to sanitize user input in PHP:

$input = $_POST['input'];
$sanitizedInput = htmlspecialchars($input, ENT_QUOTES, 'UTF-8');

Conclusion

The Drupal Core Cross-site Scripting (XSS) vulnerability poses a moderate security risk to websites built on Drupal Core. It is crucial to update to the latest version of Drupal Core (7.80, 8.9.14, or 9.1.7) to patch the vulnerability and enhance the sanitization API's filtering mechanism. Implementing additional input validation and output encoding measures can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for drupal/core →

Share this vulnerability

FAQ

Cross-site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by users. These scripts can be used to steal sensitive information, manipulate website content, or perform other malicious actions.

The Drupal Core XSS vulnerability allows attackers to inject malicious scripts into web pages, potentially compromising the security and integrity of websites. This can lead to unauthorized access to sensitive information, session hijacking, and the execution of arbitrary code.

Yes, the vulnerability affects Drupal Core versions 7.x, 8.x, and 9.x. It is recommended to update to the latest version of each major release to ensure the vulnerability is patched.

The CVSS score of this vulnerability is 6.1, indicating a moderate severity level. It is important to address this vulnerability promptly to mitigate the associated risks.

Yes, you can use Vulert's playground at Vulert Scanner to check if your Drupal Core installation is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, providing valuable insights without requiring access to the code or installation.

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.0, < 7.80 7.80
    composer require drupal/core:7.80
  • >= 8.0.0, < 8.9.14 8.9.14
    composer require drupal/core:8.9.14
  • >= 9.0.0, < 9.0.12 9.0.12
    composer require drupal/core:9.0.12
  • >= 9.1.0, < 9.1.7 9.1.7
    composer require drupal/core:9.1.7

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