BuddyPress <= 11.6.4 - Unauthenticated SQL Injection via 'xprofile' Parameter
- ID
- WPSEC-2026-4022
- Plugin
- BuddyPress (buddypress)
- Affected
- from 10.0.0 before 11.6.5
- Remediation
- Update to 11.6.5 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weakness
- CWE-89
- Usage
- Plugin Medium · Affected versions Low among sites WPSec scans, 2026-11-26
- Attack surface
- BuddyPress on WPSec AttackSurface
- Fix released
- Published
Description
The BuddyPress plugin for WordPress is vulnerable to SQL Injection via the 'relation' key of the 'xprofile' parameter of the members REST API endpoint in versions 10.0.0 up to, and including, 11.6.4. This is due to insufficient validation of the 'relation' value in BP_XProfile_Query. A clause whose 'value' is an empty array has that value removed during sanitization. The clause is then treated as a nested query, but its own 'relation' is never checked, and get_sql_for_query() concatenates that raw relation into the WHERE clause of the member query. This makes it possible for unauthenticated attackers to append additional SQL queries to existing queries, which can be used to extract sensitive information from the database.
References
- https://wpsec.com/vuln/WPSEC-2026-4022/
- https://plugins.svn.wordpress.org/buddypress/tags/11.6.5/
- https://wordpress.org/plugins/buddypress/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS