Skip to main content

CVE-2025-31677: CWE-352 Cross-Site Request Forgery (CSRF) in Drupal AI (Artificial Intelligence)

High
VulnerabilityCVE-2025-31677cvecve-2025-31677cwe-352
Published: Mon Mar 31 2025 (03/31/2025, 21:37:27 UTC)
Source: CVE
Vendor/Project: Drupal
Product: AI (Artificial Intelligence)

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.

AI-Powered Analysis

AILast updated: 06/22/2025, 12:20:50 UTC

Technical Analysis

CVE-2025-31677 is a high-severity Cross-Site Request Forgery (CSRF) vulnerability affecting the Drupal AI (Artificial Intelligence) module versions from 1.0.0 up to but not including 1.0.2. CSRF vulnerabilities occur when an attacker tricks an authenticated user into submitting a forged request to a web application, causing the application to perform unwanted actions on behalf of the user without their consent. In this case, the vulnerability resides in the Drupal AI module, which integrates AI capabilities into Drupal-based websites. The vulnerability allows remote attackers to exploit the lack of proper anti-CSRF protections, such as missing or insufficient CSRF tokens, enabling them to perform unauthorized state-changing operations. The CVSS v3.1 base score is 8.8, indicating a high impact with network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:N), but requiring user interaction (UI:R). The scope is unchanged (S:U), and the impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H). This means that successful exploitation can lead to full compromise of the affected Drupal AI module’s functionality, potentially allowing attackers to manipulate AI-driven features, alter data, or disrupt services. No known exploits are currently reported in the wild, but the vulnerability is publicly disclosed and should be considered a significant risk. The vulnerability affects only the initial release version 1.0.0 of the Drupal AI module, which suggests that upgrading to version 1.0.2 or later mitigates the issue. Since Drupal is widely used for content management across many sectors, including government, education, and enterprise, this vulnerability could have broad implications if exploited.

Potential Impact

For European organizations, the impact of this vulnerability is substantial due to Drupal's widespread adoption in public sector websites, educational institutions, and private enterprises. Exploitation could lead to unauthorized actions performed on behalf of legitimate users, such as modifying AI-driven content, changing configurations, or injecting malicious data. This could result in data breaches, misinformation, service disruption, and erosion of user trust. Given the high confidentiality, integrity, and availability impact, sensitive data processed or generated by AI modules could be exposed or corrupted. Furthermore, disruption of AI functionalities could impair business operations or public services relying on automated decision-making or content personalization. The requirement for user interaction means phishing or social engineering could be used to trigger the attack, increasing the risk in environments with less user security awareness. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate the potential for targeted attacks, especially against high-value European targets using vulnerable Drupal AI versions.

Mitigation Recommendations

1. Immediate upgrade of the Drupal AI module to version 1.0.2 or later where the CSRF vulnerability is patched. 2. Implement strict Content Security Policy (CSP) headers to reduce the risk of malicious cross-origin requests. 3. Enforce user session management best practices, including short session lifetimes and re-authentication for sensitive actions. 4. Educate users on phishing and social engineering tactics to reduce the likelihood of user interaction leading to exploitation. 5. Employ Web Application Firewalls (WAFs) with custom rules to detect and block suspicious CSRF attack patterns targeting Drupal AI endpoints. 6. Conduct regular security audits and penetration testing focusing on CSRF and other web vulnerabilities in Drupal modules. 7. Monitor Drupal security advisories and subscribe to vendor notifications to promptly apply future patches. 8. For organizations unable to upgrade immediately, consider disabling or restricting access to the Drupal AI module until patched. 9. Review and harden AI module configurations to minimize the impact of unauthorized changes.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
drupal
Date Reserved
2025-03-31T21:30:04.614Z
Cisa Enriched
true
Cvss Version
3.1
State
PUBLISHED

Threat ID: 682d983cc4522896dcbeeb57

Added to database: 5/21/2025, 9:09:16 AM

Last enriched: 6/22/2025, 12:20:50 PM

Last updated: 8/12/2025, 5:40:27 AM

Views: 14

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats