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

drupal/ai Updated 02 Oct 2025

Summary

01/04/2025
Yes i
Moderate
8.8

CVE-2025-31677: Drupal AI Cross-Site Request Forgery (CSRF) vulnerability. Affects drupal/ai versions >= 1.0.0, < 1.0.2. Fixed in 1.0.2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Drupal AI is a module designed to integrate artificial intelligence functionalities into Drupal-based websites. It enhances user experience by providing intelligent features such as content recommendations and automated responses. However, the module has been found to be vulnerable to a Cross-Site Request Forgery (CSRF) attack, which can compromise the integrity of user actions within the application.

Vulnerability Detail

The Cross-Site Request Forgery (CSRF) vulnerability in Drupal AI allows an attacker to perform unauthorized actions on behalf of a user without their consent. This vulnerability arises from insufficient verification of requests, enabling malicious actors to exploit the trust a user has in the application. If exploited, this could lead to unauthorized data manipulation or actions that could compromise user accounts and sensitive information.

How To Fix

Minimum fixed version

1.0.2

This is the first release that contains the fix.

composer require drupal/ai:1.0.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, it is advisable to limit user permissions and ensure that sensitive actions require additional verification, such as re-authentication or confirmation prompts.

Conclusion

The CSRF vulnerability in Drupal AI poses a significant risk to user security and data integrity. It is crucial to update to the patched version 1.0.2 to mitigate this risk. For those unable to update immediately, implementing workarounds can help reduce exposure until a proper fix is applied.

See every vulnerability recorded for drupal/ai →

Share this vulnerability

FAQ

CSRF is a type of attack that tricks a user into executing unwanted actions on a web application in which they are authenticated.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Exploitation of this vulnerability can lead to unauthorized actions being taken on behalf of users, potentially compromising sensitive data and user accounts.

Yes, you can limit user permissions and require additional verification for sensitive actions as a temporary workaround.

If immediate updates are not possible, implement the suggested workarounds and monitor your application closely for any suspicious activity.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/ai.

How To Fix

Minimum fixed version

1.0.2

This is the first release that contains the fix.

composer require drupal/ai:1.0.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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