CVE-2025-31677
JSON

8.8high

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

Severity
8.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
drupal
Also known as
GHSA-9w85-x5hg-fr66DRUPAL-CONTRIB-2025-003

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.

Affected

Product or packageVersionsReported by
Drupal AI (Artificial Intelligence)from 1.0.0 before 1.0.2CVE List
drupal/ai (Packagist)from 1.0.0 before 1.0.2GitHub Advisory Database
drupal/ai (Packagist:https://packages.drupal.org/8)from 1.0.0 before 1.0.2Drupal Security Team
artificial_intelligence_project artificial_intelligencefrom 1.0.0 before 1.0.2NVD

All scores

CISA-ADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHub8.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U

Classification

CWE-352

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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.

Drupal Security Team

The Drupal AI module provides a framework for easily integrating Artificial Intelligence on any Drupal site using any kind of AI (from multiple vendors). The sub-modules AI Chatbot and AI Assistants API allow users to interact with the Drupal site via a 'chat' interface.

The AI Chatbot module doesn't protect against Cross Site Request Forgeries in the Deepchat chatbot. This could allow an attacker to craft a scenario that can forge a request on behalf of a privileged user. When combined with the AI Search submodule, this could result in the AI Assistant exposing indexed data that the attacker should not have access to. When combined with the external AI Agent module, this could result in the AI Assistant exposing and allowing modification of site configuration of fields, content types, and vocabularies. Sites with custom built agents, with more privileged access, could be at greater risk from an exploit of this vulnerability.

This vulnerability is mitigated by:

  • The targeted user needs to have an active session with a role with the "access deepchat api" permission and permission to assistants.
  • To extract data, the target site must have a permissive CORS policy allowing the attacking site to read the result of a cross origin request.
  • To modify data, the targeted user must have permission to use the configured agents.
NVD (es)

La vulnerabilidad de Cross-Site Request Forgery (CSRF) en Drupal AI (Inteligencia Artificial) permite Cross-Site Request Forgery. Este problema afecta a AI (Inteligencia Artificial): desde 1.0.0 antes de 1.0.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-31677 changed 2025-04-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-9w85-x5hg-fr66 changed 2025-12-10CC-BY-4.0
Drupal Security TeamDRUPAL-CONTRIB-2025-003 changed 2026-09-10MIT
NVDCVE-2025-31677 changed 2026-06-17Public domain