# CVE-2026-118549: Drupal AI module insufficient Markdown link validation XSS

Source: https://junglewise.ai/threats/cve-2026-118549-drupal-contrib-2026-269-this-ai-module-enables-you-to-interact  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-30. Updated: 2026-10-30  
License: CC BY 4.0 with a link back

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

The Drupal AI module helps websites interact with AI providers and includes XSS protection features. The module fails to properly validate Markdown links in certain conditions, allowing attackers to inject malicious scripts that could steal user sessions, credentials, or sensitive data displayed on the page.

Technologies: [Drupal AI](https://junglewise.ai/threats/technologies/drupal-ai-1), [Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai](https://junglewise.ai/threats/technologies/drupal-ai). Vendors: [Drupal](https://junglewise.ai/threats/vendors/drupal), [Packagist:Https://Packages.Drupal.Org/8](https://junglewise.ai/threats/vendors/packagist-https-packages-drupal-org-8).

## Quick answers

**Is CVE-2026-118549 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-118549 being exploited in the wild.

**How severe is CVE-2026-118549?** Informational severity, published 30 October 2026.

**Which products and versions are affected?** Drupal AI <1.4.11 and >=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-118549?** Yes. Packagist:Https://Packages.Drupal.Org/8 Drupal/Ai: upgrade to 1.4.11 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-118549 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-118549?** 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

## Technical details

The vulnerability is a cross-site scripting (XSS) flaw caused by insufficient validation of Markdown links within the AI module's input processing. An attacker can exploit this by crafting specially formatted Markdown containing malicious JavaScript that bypasses the module's XSS sanitization. The module provides this sanitization as a service to consumers, so exploitation could affect multiple dependent modules.

## Affected products

- Drupal AI <1.4.11 and >=1.5.0 <1.5.2

## Identifiers

- CVE-2026-118549
- DRUPAL-CONTRIB-2026-269

## Timeline

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

## References

- [https://www.drupal.org/u/marcus_johansson](https://www.drupal.org/u/marcus_johansson)
- [https://www.drupal.org/sa-contrib-2026-269](https://www.drupal.org/sa-contrib-2026-269)

## Related threats

- [Drupal AI Automator text format access bypass](https://junglewise.ai/threats/cve-2026-118553-drupal-contrib-2026-273-the-ai-module-includes-a-submodule-ai)
- [Drupal AI module cross-site scripting in HTMX attributes](https://junglewise.ai/threats/cve-2026-118552-drupal-contrib-2026-272-this-module-provides-a-framework-for)
- [Drupal AI module information disclosure in speech-to-text audio](https://junglewise.ai/threats/cve-2026-118551-drupal-contrib-2026-271-this-module-provides-a-framework-for)
- [Drupal AI module information disclosure in Search API caching](https://junglewise.ai/threats/cve-2026-118550-drupal-contrib-2026-270-this-module-provides-a-framework-for)
- [Drupal AI module insufficient link validation](https://junglewise.ai/threats/cve-2026-118548-drupal-contrib-2026-268-this-module-enables-you-to-use-ai-on-the)
