Advisories / composer / drupal/core / CVE-2025-31675
Drupal Core Cross-Site Scripting (XSS) Vulnerability (CVE-2025-31675)
CVE-2025-31675 GHSA-m4wj-hhwj-47qp Published 1 Apr 2025
Fixed in drupal/core 10.3.14 and 10.4.5 and 11.0.13 and 11.1.5.
$ composer require drupal/core:^10.3.14 $ composer require drupal/core:^10.4.5 $ composer require drupal/core:^11.0.13 $ composer require drupal/core:^11.1.5
Run the one for the major version you’re on: each fix stays within its release line.
Which versions are affected
| Package | Affected | Fixed in |
|---|---|---|
| drupal/core | ≥ 8.0.0, < 10.3.14≥ 10.4.0, < 10.4.5≥ 11.0.0, < 11.0.13≥ 11.1.0, < 11.1.5 | 10.3.1410.4.511.0.1311.1.5 |
Check a site from its project folder:
composer show drupal/core
shows the installed version. Or paste the lock file into the lock file checker to check every package at once.
Timeline
- Advisory published, with a fix
Questions
Which version of drupal/core is safe from CVE-2025-31675?
11.1.5 and later. Versions affected: ≥ 8.0.0, < 10.3.14, ≥ 10.4.0, < 10.4.5, ≥ 11.0.0, < 11.0.13, ≥ 11.1.0, < 11.1.5.