CVE-2026-118546: Drupal AI module cross-site scripting in chatbot

CVE-2026-118546 · Severity: info · Published 2026-10-30

The Drupal AI module's Chatbot submodule is used to deploy conversational AI assistants on websites. Under certain configurations, the chatbot fails to properly filter user input before displaying it, allowing attackers with block administration privileges to inject malicious scripts that execute in visitors' browsers. This could enable account takeover, session hijacking, or phishing attacks against site users.

Technologies: Drupal AI, Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai. Vendors: Drupal, Packagist:Https://Packages.Drupal.Org/8.

Quick answers

Is CVE-2026-118546 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-118546 being exploited in the wild.
How severe is CVE-2026-118546?
Informational severity, published 30 October 2026.
Which products and versions are affected?
Drupal AI <1.4.11, >=1.5.0 <1.5.2; Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai ECOSYSTEM:introduced=0,fixed=1.4.11|ECOSYSTEM:introduced=1.5.0,fixed=1.5.2.
Is there a fix for CVE-2026-118546?
Yes. Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai: upgrade to 1.4.11 or later. Until then: Restrict block administration privileges to trusted administrators only. For 1.3.x users, upgrade to either 1.4.11 or 1.5.2 as the 1.3.x branch is unsupported. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-118546 attacked?
It is attacked over the network.
Am I affected by CVE-2026-118546?
Check whether you run Drupal AI or Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai: upgrade to 1.4.11 or later

Restrict block administration privileges to trusted administrators only. For 1.3.x users, upgrade to either 1.4.11 or 1.5.2 as the 1.3.x branch is unsupported.

Technical details

Stored cross-site scripting (XSS) vulnerability in the AI Chatbot submodule due to insufficient input sanitization before output rendering. An attacker with access to administer blocks can inject malicious JavaScript that will execute when the chatbot is rendered to other users. The vulnerability affects versions before 1.4.11 and 1.5.x before 1.5.2.

Affected products

  • Drupal AI <1.4.11, >=1.5.0 <1.5.2

Identifiers

  • CVE-2026-118546
  • DRUPAL-CONTRIB-2026-267

Timeline

  • 2026-10-28: disclosed
  • 2026-10-28: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.