# CVE-2025-31675: Drupal Core Cross-Site Scripting (XSS) Vulnerability

Source: https://junglewise.ai/threats/cve-2025-31675-drupal-core-2025-004-drupal-core-link-field-attributes-are-not  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-04-01  
License: CC BY 4.0 with a link back

CVE-2025-31675 · Severity: low · CVSS 3.1 · Published 2025-04-01

Drupal Core Cross-Site Scripting (XSS) Vulnerability

Technologies: [drupal/core (Packagist)](https://junglewise.ai/threats/technologies/packagist-drupal-core). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2025-31675 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-31675 being exploited in the wild.

**How severe is CVE-2025-31675?** Low severity, with a CVSS score of 3.1, published 1 April 2025.

**Which products and versions are affected?** drupal/core (Packagist) ECOSYSTEM:introduced=8.0.0,fixed=10.3.14, ECOSYSTEM:introduced=8.0.0,fixed=10.3.14|ECOSYSTEM:introduced=10.4.0,fixed=10.4.5|ECOSYSTEM:introduced=11.0.0,fixed=11.0.13|ECOSYSTEM:introduced=11.1.0,fixed=11.1.5.

**Is there a fix for CVE-2025-31675?** Yes. drupal/core (Packagist): upgrade to 10.3.14 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-31675?** Check whether you run drupal/core (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- drupal/core (Packagist): upgrade to 10.3.14 or later

  ```sh
  composer require drupal/core:^10.3.14
  ```


## Affected products

- drupal/core (Packagist) ECOSYSTEM:introduced=8.0.0,fixed=10.3.14, ECOSYSTEM:introduced=8.0.0,fixed=10.3.14|ECOSYSTEM:introduced=10.4.0,fixed=10.4.5|ECOSYSTEM:introduced=11.0.0,fixed=11.0.13|ECOSYSTEM:introduced=11.1.0,fixed=11.1.5

## Identifiers

- CVE-2025-31675
- DRUPAL-CORE-2025-004
- GHSA-m4wj-hhwj-47qp

## Related threats

- [Drupal core Link module cross-site scripting in markup sanitization](https://junglewise.ai/threats/cve-2026-108515-drupal-core-2026-015-the-drupal-core-link-module-provides-a)
- [Drupal Navigation module cross-site scripting in attributes](https://junglewise.ai/threats/cve-2026-108514-drupal-core-2026-016-the-navigation-module-doesn-t-sufficiently)
- [Drupal Core remote code execution in Field UI module](https://junglewise.ai/threats/cve-2026-108097-drupal-core-2026-014-a-remote-code-execution-vulnerability)
- [Drupal cross-site scripting in CKEditor WYSIWYG](https://junglewise.ai/threats/drupal-core-2026-013-the-drupal-project-uses-the-ckeditor-https-github-f5b3da40)
- [Drupal stored cross-site scripting in Layout Builder](https://junglewise.ai/threats/cve-2026-55805-drupal-stored-cross-site-scripting-in-layout-builder)
