Intel

AIKIDO-2025-10911

drupal/ai is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS)CVE-2025-13981 Published Dec 9, 2025

60

Medium Risk

This Affects:

PHPdrupal/ai
0.0.1 - 1.0.6
Fixed in 1.0.7
1.1.0 - 1.1.6
Fixed in 1.1.7
1.2.0 - 1.2.3
Fixed in 1.2.4
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Cross-site Scripting (XSS): the module doesn’t sufficiently filter LLM responses. This leads to a cross-site scripting (XSS) vulnerability where an attacker can use prompt injections on user-generated content with the LLM as context.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

drupal/ai is vulnerable to Cross-site Scripting (XSS) in versions 0.0.1 - 1.0.6, 1.1.0 - 1.1.6 and 1.2.0 - 1.2.3.

How to fix this

Upgrade the drupal/ai library to the patch version.