CVE-2026-107845: Stored XSS in Contao Comments Bundle (CVSS 9.3)
What's the vulnerability
CVE-2026-107845 is a stored cross-site scripting (XSS) flaw in the Contao comments-bundle, tracked under CWE-79 (Improper Neutralization of Input During Web Page Generation) and CWE-116 (Improper Encoding or Escaping of Output). The bundle fails to properly neutralize or encode user-supplied markup submitted through its comment form. An attacker can persist a JavaScript payload inside a comment that later executes in the browser context of any visitor who views the comment thread — or, more critically, in the browser of a back-end administrator moderating or reviewing comments. That makes session hijacking, CMS admin takeover, and further lateral compromise realistic outcomes if an attacker's payload reaches a privileged reviewer. The issue is rated CVSS 9.3, reflecting the severity of a stored payload landing in an administrative context.
Affected software
The vulnerability affects the contao/comments-bundle Composer package maintained by Contao:
- >= 4.0.0, < 5.3.50
- >= 5.4.0-RC1, < 5.7.12
Sites running any Contao installation with these comments-bundle versions should patch to 5.3.50 or 5.7.12 as appropriate for their release line.
Exploitation status
Exploitation is currently classified as theoretical — there is no known in-the-wild activity, KEV listing, or public proof-of-concept observed at this time. Given the CVSS 9.3 severity and the straightforward nature of stored XSS bugs once disclosed, defenders should treat patching as time-sensitive rather than wait for weaponization signals, since exploit code for comment-injection XSS tends to appear quickly after disclosure.
How our detection catches it
This detection ships across Microsoft Sentinel (KQL), Splunk (SPL), Elastic (EQL), QRadar (AQL), Sumo Logic, Chronicle (YARA-L), and CrowdStrike (CQL). The logic focuses on three signal classes: anomalous comment-submission POST requests whose body or parameters contain script-like markup (e.g., <script>, event-handler attributes, javascript: URIs) targeting comment endpoints; subsequent page responses that reflect or persist those same script markers, indicating a successful stored injection; and inventory/version signals identifying Contao deployments still running a vulnerable comments-bundle release. Correlating submission attempts with reflected markers in later responses helps distinguish benign comment traffic from an actual successful stored-XSS write.
Remediation and further detail
Patch to comments-bundle 5.3.50 or 5.7.12 depending on your release line, and review existing comment content for suspicious markup if you were running an affected version. Full detection logic, sample events, and per-SIEM queries are available on the detection page for CVE-2026-107845.