# CVE-2025-31677: Drupal AI Cross-Site Request Forgery (CSRF) vulnerability

Source: https://junglewise.ai/threats/cve-2025-31677-drupal-contrib-2025-003-the-drupal-ai-module-provides-a-framework  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-04-01  
License: CC BY 4.0 with a link back

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

Drupal AI Cross-Site Request Forgery (CSRF) vulnerability

Technologies: [drupal/ai (Packagist)](https://junglewise.ai/threats/technologies/packagist-drupal-ai), [Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai](https://junglewise.ai/threats/technologies/drupal-ai). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist), [Packagist:Https://Packages.Drupal.Org/8](https://junglewise.ai/threats/vendors/packagist-https-packages-drupal-org-8).

## Quick answers

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

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

**Which products and versions are affected?** drupal/ai (Packagist) ECOSYSTEM:introduced=1.0.0,fixed=1.0.2; Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai ECOSYSTEM:introduced=1.0.0,fixed=1.0.2.

**Is there a fix for CVE-2025-31677?** Yes. drupal/ai (Packagist): upgrade to 1.0.2 or later; Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai: upgrade to 1.0.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-31677?** Check whether you run drupal/ai (Packagist) or Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai 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/ai (Packagist): upgrade to 1.0.2 or later

  ```sh
  composer require drupal/ai:^1.0.2
  ```

- Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai: upgrade to 1.0.2 or later

## Affected products

- drupal/ai (Packagist) ECOSYSTEM:introduced=1.0.0,fixed=1.0.2
- Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai ECOSYSTEM:introduced=1.0.0,fixed=1.0.2

## Identifiers

- CVE-2025-31677
- DRUPAL-CONTRIB-2025-003
- GHSA-9w85-x5hg-fr66

## Related threats

- [Drupal AI Automator text format access bypass](https://junglewise.ai/threats/cve-2026-118553-drupal-contrib-2026-273-the-ai-module-includes-a-submodule-ai)
- [Drupal AI module cross-site scripting in HTMX attributes](https://junglewise.ai/threats/cve-2026-118552-drupal-contrib-2026-272-this-module-provides-a-framework-for)
- [Drupal AI module information disclosure in speech-to-text audio](https://junglewise.ai/threats/cve-2026-118551-drupal-contrib-2026-271-this-module-provides-a-framework-for)
- [Drupal AI module information disclosure in Search API caching](https://junglewise.ai/threats/cve-2026-118550-drupal-contrib-2026-270-this-module-provides-a-framework-for)
- [Drupal AI module insufficient Markdown link validation XSS](https://junglewise.ai/threats/cve-2026-118549-drupal-contrib-2026-269-this-ai-module-enables-you-to-interact)
