Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93899 Overview
CVE-2026-93899 is a SQL injection vulnerability [CWE-89] affecting the Better Messages – Chat Rooms, Group Chat, Private Messages & AI Chat Bots plugin for WordPress. The flaw exists in all versions up to and including 3.0.4. The plugin fails to escape the group_id message meta parameter and does not sufficiently prepare the SQL query. Authenticated attackers with subscriber-level access or above can append SQL statements to extract sensitive database contents. Exploitation requires the BuddyBoss Platform plugin to be installed with its Social Groups component disabled, since BuddyBoss retains the wp_bp_groups table after deactivation.
Critical Impact
Authenticated subscribers can exfiltrate sensitive database contents, including user credentials and private messages, when a specific BuddyBoss configuration state is present.
Affected Products
- Better Messages – Chat Rooms, Group Chat, Private Messages & AI Chat Bots WordPress plugin versions ≤ 3.0.4
- WordPress sites running the plugin alongside BuddyBoss Platform with the Social Groups component disabled
- Sites that previously enabled and then disabled the BuddyBoss Groups component (retains the wp_bp_groups table)
Discovery Timeline
- 2026-09-25 - CVE-2026-93899 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-93899
Vulnerability Analysis
The vulnerability resides in the BuddyBoss addon of the Better Messages plugin. Code in addons/buddyboss.php consumes a user-supplied group_id value tied to message metadata without applying parameterization. The affected logic appears at lines 626 and 635 in version 3.0.3, with related helpers in inc/functions.php (line 3323) and inc/rest-api.php (line 1073). Because the parameter is concatenated into the SQL statement rather than bound through wpdb::prepare(), an authenticated attacker can inject additional SQL clauses. The injection is reachable through the plugin's REST API surface, which only requires an authenticated session at subscriber level.
Root Cause
The root cause is insufficient escaping of the group_id parameter and improper use of parameterized queries [CWE-89]. The plugin assumed BuddyBoss would always manage the wp_bp_groups table lifecycle. BuddyBoss, however, does not drop the table on component deactivation, leaving a persistent attack path on sites that toggled the Social Groups component off.
Attack Vector
An attacker registers or uses an existing subscriber-level account on a vulnerable WordPress site. They then send a crafted request to the Better Messages REST API endpoint that handles message meta, supplying malicious SQL within the group_id parameter. The injected payload is appended to the existing query and executed against the database, enabling extraction of records such as password hashes, authentication tokens, or private chat content. Review the referenced WordPress BuddyBoss Addon Code for the vulnerable sink.
Detection Methods for CVE-2026-93899
Indicators of Compromise
- Web server access logs containing REST API requests to Better Messages endpoints with SQL metacharacters such as UNION, SELECT, --, or /* in the group_id parameter.
- Database query logs showing anomalous SELECT statements against wp_users, wp_usermeta, or wp_bp_messages_meta originating from the plugin's query path.
- New or unexpected subscriber account registrations followed by elevated REST API activity targeting messaging endpoints.
Detection Strategies
- Enable WordPress query logging and alert on queries referencing wp_bp_groups that contain tautologies or stacked clauses.
- Deploy a web application firewall rule to inspect the group_id parameter on Better Messages REST routes for non-numeric content.
- Correlate authentication events with REST API calls so that low-privilege accounts generating heavy messaging API traffic are surfaced for review.
Monitoring Recommendations
- Monitor outbound responses from the plugin's REST endpoints for abnormally large payload sizes that may indicate data exfiltration.
- Track plugin version inventory across WordPress sites and alert when any instance remains at ≤ 3.0.4.
- Audit BuddyBoss component state changes, specifically disablement of the Social Groups component, which creates the preconditions for exploitation.
How to Mitigate CVE-2026-93899
Immediate Actions Required
- Update the Better Messages plugin to version 3.0.5 or later, which contains the upstream fix referenced in the WordPress Code Changeset 3.0.3 to 3.0.5.
- Audit all subscriber-level and higher accounts, removing stale or suspicious users.
- Rotate WordPress administrator passwords and secret keys if exploitation is suspected.
Patch Information
The maintainers addressed the issue in version 3.0.5 by correcting the SQL preparation for the group_id parameter in the BuddyBoss addon. Additional analysis is available in the Wordfence Vulnerability Analysis.
Workarounds
- If patching is not immediately possible, deactivate the Better Messages plugin until the upgrade can be applied.
- Re-enable the BuddyBoss Social Groups component to remove the exploitation precondition, or drop the orphaned wp_bp_groups table after confirming it is unused.
- Restrict new user registrations and enforce administrative approval for subscriber accounts to limit the pool of potential attackers.
# Configuration example - update the plugin via WP-CLI
wp plugin update bp-better-messages --version=3.0.5
wp plugin list --name=bp-better-messages --fields=name,status,version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

