# MxChat <= 3.2.25 - Unauthenticated Stored Cross-Site Scripting via Chat Messages

- **ID:** WPSEC-2026-1227
- **Plugin:** MxChat – AI Chatbot & Content Generation for WordPress (`mxchat-basic`), https://wordpress.org/plugins/mxchat-basic/
- **Affected versions:** all versions before 3.2.26
- **Fixed in:** 3.2.26 (Update to 3.2.26 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-10-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/mxchat-basic
- **Fix released:** 2026-10-17
- **Published:** 2026-10-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1227/

## Description

The MxChat plugin for WordPress is vulnerable to Stored Cross-Site Scripting via chat messages shown in the admin transcript viewer in all versions up to, and including, 3.2.25. This is due to messages being filtered with wp_kses before a regex-based link formatter ran, without being sanitized again afterwards. A URL placed inside an allowed attribute could then break out of that attribute. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in chat messages that execute when an administrator opens the conversation transcript.

## References

- https://wpsec.com/vuln/WPSEC-2026-1227/
- https://plugins.svn.wordpress.org/mxchat-basic/tags/3.2.26/
- https://wordpress.org/plugins/mxchat-basic/

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

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.
