/

CVE-2026-47416

Severity:

CRITICAL RISK

(9.6)

Privilege Escalation (CWE-269) in PraisonAI Workspace

CVE-2026-47416

Deferred

Vulnerability type

Category:

Privilege Escalation

CWE:

CWE-269, CWE-862

Impact:

Vertical Privilege Escalation to Admin/Owner

Severity:

CRITICAL RISK

(9.6)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

PraisonAI Platform contains a vertical privilege escalation flaw in the workspace member role update API, allowing ordinary members to arbitrarily change user roles.

When exploited, any workspace member can silently grant themselves or others admin-level permissions by calling the vulnerable PATCH endpoint, making access control rules ineffective in affected deployments.

Affected context

This vulnerability occurs in PraisonAI Platform's workspace management layer, specifically around the API that updates member roles within a workspace.

It manifests in deployments where:

  • Role-based access control is enforced via application-level checks
  • The PATCH /workspaces/{workspace_id}/members/{user_id} endpoint is exposed to all workspace members
  • Business logic assumes that only privileged users will invoke administrative role changes, but does not verify this assumption in code

Exploit preconditions

  • Attack surface: HTTP API endpoint PATCH /workspaces/{workspace_id}/members/{user_id}
  • Required access: Valid workspace membership with at least the default "member" role
  • Trigger point: Sending a PATCH request that specifies a higher-privilege role in body.role for any target user, including the caller
  • Why exploitation is possible: The authorization guard only ensures that the caller is a workspace member and does not enforce:
  • Minimum required role for performing role changes
  • That the new role is less than or equal to the caller's role
  • That the caller is not elevating their own role

Why this happens

The core issue is a broken authorization design in the role-update business logic, mapping directly to CWE-269: Improper Privilege Management and related to CWE-862: Missing Authorization.

The handler for the role update endpoint relies on require_workspace_member(workspace_id) with a default min_role="member", which only verifies membership but not administrative capability.

MemberService.update_role(workspace_id, user_id, body.role) then performs the role change without any comparison between the caller's privilege level and the requested target role, creating a logic gap where untrusted, minimally authorized users can perform sensitive administrative actions.

Potential impact

  • Workspace members may escalate their own privileges to admin or owner levels.
  • Attackers could demote legitimate admins or lock them out of critical functions.
  • Sensitive workspace data and configuration can be accessed, modified, or deleted.
  • Multi-agent teams and automation policies can be altered or sabotaged.
  • Audit trails and security settings within the workspace can be tampered with.

General mitigation guidance

Effective mitigation centers on enforcing strict, explicit authorization checks for all role-changing operations and other privileged actions.

Recommended patterns include:

  • Implement role-based access control (RBAC) where administrative operations require a minimum role (e.g., owner or admin), enforced in code at every entry point.
  • Validate that requested role changes cannot exceed the caller's own role, and treat self-promotion as a privileged operation requiring elevated rights.
  • Centralize privilege management in a dedicated authorization layer or service to avoid ad-hoc checks spread across handlers.
  • Adopt secure defaults such that endpoints affecting roles, permissions, or membership are denied unless explicitly allowed.
  • Apply least-privilege principles to workspace members and avoid exposing administrative capabilities to general users via shared routes.

How teams detect issues like this

Detection typically focuses on identifying authorization gaps and unusual role change behavior.

Helpful strategies include:

  • Static analysis or code review rules that flag privilege-changing operations (e.g., update_role, set_role, grant_permission) lacking explicit checks for minimum role or ownership.
  • Reviewing handlers for security-sensitive endpoints to confirm that they use strong, scoped authorization helpers rather than generic membership checks.
  • Logging all role changes with actor identity, source IP, previous role, new role, and workspace context, then monitoring for anomalies such as members promoting themselves to admin or owner.
  • Employing automated policy enforcement tools that verify RBAC consistency across API routes, ensuring that only designated roles can perform administrative actions.

Sources

SourceLink
github.comgithub.com/MervinPraison/PraisonAI/commit/ef79b7a0561796ad9807f0f09538c25cc78d3619
github.comgithub.com/MervinPraison/PraisonAI/security/advisories/GHSA-c2m8-4gcg-v22g

Frequently asked

questions

Any user who is a member of an affected workspace can exploit this vulnerability by calling the role update endpoint with a higher-privilege role, making it broadly exploitable wherever the API is accessible to regular members.

The attacker needs valid access as a workspace member; no administrator or owner privileges are required. Once a member, they can use the vulnerable endpoint to escalate privileges.

Introduce strict RBAC checks whenever roles or permissions are modified, requiring that only admins or owners can change other users' roles, and ensuring that no user can grant privileges higher than their own without a dedicated, tightly controlled administrative pathway.

Design authorization as a first-class, centralized concern: define clear privilege tiers, enforce them consistently at every sensitive endpoint, adopt secure-by-default authorization helpers, and regularly review code for business logic authorization gaps, particularly around role management and access control changes.

Find out what's already
exploitable in your codebase.