CVE-2026-118552 in Drupalinfo

Summary

by MITRE • 10/30/2026

Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal AI (Artificial Intelligence) allows Cross-Site Scripting (XSS). This issue affects AI (Artificial Intelligence) versions: from 0.0.0 to 1.4.11, from 1.5.0 to 1.5.2.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 10/30/2026

The Drupal module known as Artificial Intelligence, commonly referred to as AI, contains a critical security flaw classified under the category of Improper Neutralization of Input During Web Page Generation, widely recognized in industry standards as Cross-Site Scripting or CWE-79. This vulnerability affects multiple versions of the module, specifically those ranging from version 0.0.0 up through 1.4.11 and subsequently from 1.5.0 to 1.5.2. The core technical flaw lies in the failure of the application to adequately sanitize or validate user-supplied input before it is rendered within a web page context. When an attacker injects malicious script code into these fields, the Drupal environment processes this input without applying necessary security filters, allowing the embedded JavaScript to execute directly in the victim's browser session.

From a technical perspective, this vulnerability typically manifests when data entered by users through forms or API endpoints is reflected back into the HTML output without proper encoding. The AI module likely handles inputs related to artificial intelligence configurations, prompts, or responses that are displayed on public-facing pages. Because the input is not neutralized, any script tags, event handlers, or other executable code included in the payload will be interpreted by the web browser as part of the page content rather than as data. This behavior violates the fundamental security principle of separating code from data, which is essential for preventing client-side attacks. The presence of this flaw indicates a lack of robust input validation mechanisms within the specific functions responsible for rendering AI-related content in these affected versions.

The operational impact of this Cross-Site Scripting vulnerability can be severe depending on the privileges and context of users who interact with the vulnerable pages. Attackers can exploit this weakness to steal session cookies, which may lead to account takeover if administrative or privileged user sessions are compromised. Furthermore, XSS attacks can be used to perform actions on behalf of authenticated users, such as changing settings, submitting forms, or accessing sensitive data stored within the Drupal instance. In scenarios where the AI module processes sensitive information, attackers might also use this vector to phish credentials by displaying fake login prompts that mimic legitimate Drupal interfaces. The ability to execute arbitrary JavaScript effectively grants the attacker control over the user's interaction with the site during their active session.

In terms of threat modeling and industry frameworks, this vulnerability aligns with MITRE ATT&CK technique T1059, specifically Command and Scripting Interpreter: JavaScript, as it allows for client-side script execution. It also relates to data exfiltration techniques where stolen cookies or local storage contents are sent to an attacker-controlled server. The persistence of such vulnerabilities in widely used modules highlights the importance of rigorous code review processes that prioritize input sanitization and output encoding strategies consistent with OWASP guidelines. Organizations relying on these versions must recognize that even non-administrative user inputs can serve as a vector for significant security breaches if not properly handled by the backend logic.

To mitigate this risk, immediate action is required to update the Drupal AI module to a version beyond 1.5.2 where the input handling has been corrected. If updating is not immediately feasible, administrators should implement web application firewall rules that detect and block common XSS payloads in HTTP requests targeting the affected endpoints. Additionally, enabling Content Security Policy headers can help restrict the execution of unauthorized scripts, providing an additional layer of defense against exploitation attempts. Developers reviewing similar codebases should ensure that all user inputs are strictly validated against expected formats and that any data rendered to HTML is properly encoded using context-aware encoding functions provided by the Drupal framework or established security libraries. Regular auditing of third-party modules for such input validation flaws remains a critical component of maintaining a secure web application environment.

Responsible

Drupal

Reservation

10/28/2026

Disclosure

10/30/2026

Moderation

accepted

EPSS

0.00000

KEV

no

Activities

low

Sources

Interested in the pricing of exploits?

See the underground prices here!