{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4022",
 "modified": "2026-11-26T18:51:25Z",
 "published": "2026-11-26T18:51:25Z",
 "summary": "BuddyPress <= 11.6.4 - Unauthenticated SQL Injection via 'xprofile' Parameter",
 "details": "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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "buddypress"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "10.0.0"
      },
      {
       "fixed": "11.6.5"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 10.0.0 before 11.6.5"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4022/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/buddypress/tags/11.6.5/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/buddypress/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4022/",
  "cwe_ids": [
   "CWE-89"
  ],
  "vulnerability_type": "SQLI",
  "severity": "High",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
