ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2025-119

Details

This modules provides the ability to chat with an AI Agent using a large-language model (LLM) provider for different purposes.

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.

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/ai
All versions before 1.0.7 (fixed in 1.0.7)
From 1.1.0 before 1.1.7 (fixed in 1.1.7)
From 1.2.0 before 1.2.4 (fixed in 1.2.4)

References