Skip to main content
VulnerabilityPublished

CVE-2025-13981: drupal/ai · This modules provides the ability to chat with an AI Agent using a large-language model (LLM)

Affects drupal/aiSource GCVE Database

0
Compare
Authoritative record:CVE-2025-13981· Medium 4.4

Not known to be exploited · CVSS 4.4 Medium · fixed in 1.2.4 : update drupal/ai when convenient.

Data as of 23 Nov 2026, 02:35 UTC

CVSS 3.1 base score
4.4Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.2.4, 1.1.7, 1.0.7
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.

What to do

Upgrade drupal/ai to 1.2.4, 1.1.7 or 1.0.7.

Affected software

ProductAffectedFixed in
Packagist https //packages.drupal.org/8drupal/aiAffected
  • <1.0.7
  • >=1.1.0 <1.1.7
  • >=1.2.0 <1.2.4
Fixed in
  • 1.0.7
  • 1.1.7
  • 1.2.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Apply the official patches by upgrading the Drupal AI module to version 1.0.7, 1.1.7, or 1.2.4 or later. These versions contain fixes that properly filter LLM responses to prevent XSS via prompt injections. No other mitigation steps are indicated by the vendor advisory.

Description

The Drupal AI module allows chat interactions with an AI Agent using large-language models. It suffers from insufficient filtering of LLM responses, resulting in a cross-site scripting (XSS) vulnerability. This flaw enables attackers to perform prompt injections on user-generated content that is processed with the LLM as context. Fixed versions addressing this issue are 1.0.7, 1.1.7, and 1.2.4.

References

Community reviews

Loading reviews…