# Better Messages <= 3.1.3 - Unauthenticated DOM-Based Reflected Cross-Site Scripting via 'bmErrors' Parameter

- **ID:** WPSEC-2026-1325
- **Plugin:** Better Messages – Chat Rooms, Group Chat, Private Messages & AI Chat Bots (`bp-better-messages`), https://wordpress.org/plugins/bp-better-messages/
- **Affected versions:** all versions before 3.1.4
- **Fixed in:** 3.1.4 (Update to 3.1.4 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/bp-better-messages
- **Fix released:** 2026-10-20
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1325/

## Description

The Better Messages plugin for WordPress is vulnerable to DOM-Based Reflected Cross-Site Scripting via the 'bmErrors' URL parameter in all versions up to, and including, 3.1.3, due to insufficient sanitization and escaping. The messenger script reads error messages from the 'bmErrors' parameter in the query string or URL hash and parses them as HTML in an error notice. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into pages that execute if they can trick a user, such as an administrator, into clicking a crafted link to a page that loads the messenger.

## References

- https://wpsec.com/vuln/WPSEC-2026-1325/
- https://plugins.svn.wordpress.org/bp-better-messages/tags/3.1.4/
- https://wordpress.org/plugins/bp-better-messages/

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

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.
