Vulnerabilities / BuddyPress / WPSEC-2026-4027

BuddyPress <= 14.5.6 - Unauthenticated SQL Injection via 'relation' Key of the Members REST Endpoint 'xprofile' Parameter

High 7.5 CWE-89Fixed in 14.5.7
ID
WPSEC-2026-4027
Plugin
BuddyPress (buddypress)
Affected
from 14.0.0 before 14.5.7
Remediation
Update to 14.5.7 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 Medium 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 (/buddypress/v1/members) in versions 14.0.0 up to, and including, 14.5.6, due to insufficient validation in the BP_XProfile_Query (and BP_Recursive_Query) query sanitizer. A clause with an empty 'value' array stops being a first-order clause once that value is removed, so it is kept without its own 'relation' being validated, and that raw 'relation' string is then used to join the generated WHERE clauses. This makes it possible for unauthenticated attackers to append additional SQL to an existing query and extract sensitive information from the database.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0