# WPBot <= 9.3 - Unauthenticated Stored Cross-Site Scripting via Chat Session Source URL and Transcript

- **ID:** WPSEC-2026-4089
- **Plugin:** WPBot – AI ChatBot for WordPress & Growth Suite: SEO, AI Writer, Email Marketing, Social Media (`chatbot`), https://wordpress.org/plugins/chatbot/
- **Affected versions:** from 8.4.9 before 9.4
- **Fixed in:** 9.4 (Update to 9.4 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/chatbot
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4089/

## Description

The WPBot – AI ChatBot for WordPress & Growth Suite: SEO, AI Writer, Email Marketing, Social Media plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the chat session Source URL in all versions up to, and including, 9.3, due to insufficient input sanitization and output escaping. The visitor-supplied source URL (the 'source_url' POST parameter, or the Referer header) is stored in the chat transcript as entity-encoded HTML without escaping, and the Chat Sessions transcript view decodes these entities before rendering them with an allowlist that keeps data-* attributes, which the bundled Bootstrap 3 affix component passes to jQuery() as HTML. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute when an administrator views the chat session.

## References

- https://wpsec.com/vuln/WPSEC-2026-4089/
- https://plugins.svn.wordpress.org/chatbot/tags/9.4/
- https://wordpress.org/plugins/chatbot/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4089/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
