CVE-2025-31677 AI (Artificial Intelligence) - Critical - Cross Site Request Forgery - SA-CONTRIB-2025-003

High 8.8 Published Updated

Attackers can trick authenticated users into performing unintended actions in the Drupal AI module, requiring an upgrade to the latest version.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-31677?

CVE-2025-31677 is a high-severity vulnerability in Drupal AI (Artificial Intelligence), published on 31 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Cross-Site Request Forgery (CSRF) vulnerability in Drupal AI (Artificial Intelligence) allows Cross Site Request Forgery.This issue affects AI (Artificial Intelligence): from 1.0.0 before 1.0.2.

Weakness: CWE-352

Which versions are affected by CVE-2025-31677?

2 open source packages ship an affected version, including drupal/ai. It affects 1 product.

PackageAffectedFixed in
drupal/ai PackagistFrom 1.0.01.0.2
drupal/ai PackagistFrom 1.0.01.0.2
Linux distribution packages (1)
drupal/ai Packagist:https://packages.drupal.org/8From 1.0.01.0.2

Products include Artificial Intelligence Project Artificial Intelligence.

How do I fix CVE-2025-31677?

Upgrade drupal/ai to 1.0.2 or later.

Is CVE-2025-31677 being exploited?

There is no known exploitation of CVE-2025-31677 in the wild and no public exploit code.

Sources

Also known as DRUPAL-CONTRIB-2025-003, GHSA-9w85-x5hg-fr66.

Is CVE-2025-31677 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free