DRUPAL-CONTRIB-2026-076
Details
The AI SEO/GEO Analyzer module generates SEO/GEO analysis reports by sending content of an entity (including its comments) to an LLM, then converts the model's Markdown response to HTML and stores it for display to privileged users.
The generated HTML was rendered without passing through Drupal's filtering pipeline, so it relied on the LLM output being safe. Under certain circumstances a crafted prompt injection — planted in content that is included in the analysis — can cause the LLM to emit markup that results in stored Cross-site Scripting when the report is later viewed.
This vulnerability is mitigated by the fact that an attacker must be able to inject text into the content that is sent to the LLM, and that prompt injection is non-deterministic and not guaranteed to succeed on a given attempt.
Are you affected?
Enter the version of the package you're using.
Affected packages
0 Fixed in: 1.1.3 Upgrade drupal/ai_seo to 1.1.3 or newer (ecosystem packagist:https://packages.drupal.org/8).