/

CVE-2026-47413

Severity:

CRITICAL RISK

(9.6)

Privilege Escalation (CWE-269) in PraisonAI Workspaces

CVE-2026-47413

Deferred

Vulnerability type

Category:

Authorization and Access Control

CWE:

CWE-269, CWE-862

Impact:

Privilege Escalation to Workspace Ownership

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 privilege escalation flaw where low-privilege workspace members can arbitrarily assign roles, including promoting users to workspace owners.

By abusing the member management endpoint, an attacker can inject new accounts or escalate existing users across tenants, leading to full control of affected workspaces.

Affected context

This vulnerability arises in PraisonAI Platform deployments where workspace membership management is exposed via the POST /workspaces/{workspace_id}/members API.

The issue appears when the endpoint only checks that the caller is a workspace member (with a minimal "member" role) and then forwards the supplied user_id and role directly into the membership service without further authorization.

It is most relevant in multi-tenant environments where different organizations or teams share the same platform and rely on workspace roles as a primary isolation boundary.

Exploit preconditions

  • Attack surface: Application API, specifically POST /workspaces/{workspace_id}/members
  • Required access: Any authenticated user who is at least a "member" of the target workspace
  • Trigger point: Submitting a request that specifies an arbitrary user_id and an elevated role (such as "owner") for that workspace
  • Why exploitation is possible: The member addition flow checks only that the caller belongs to the workspace, and then blindly trusts the caller-provided user_id and role parameters, with no server-side check that the caller is allowed to assign or create higher-privileged roles

Why this happens

The core issue is a missing or improperly enforced authorization check on a sensitive operation: modifying workspace membership and roles.

The POST /workspaces/{workspace_id}/members endpoint relies on require_workspace_member(workspace_id) with a default min_role="member" and does not enforce that only higher-privileged roles (e.g., owners or admins) can promote or add members.

The downstream call to MemberService.add(workspace_id, user_id, role) performs no caller-permission validation, effectively trusting unprivileged users to assign arbitrary roles.

This maps to CWE-269: Improper Privilege Management, with a contributing factor of CWE-862: Missing Authorization, where security-sensitive actions are not gated by appropriate permission checks.

Potential impact

  • An attacker-controlled account may be promoted to workspace owner, gaining full administrative control over that workspace
  • Cross-tenant member injection could allow unauthorized users to be added to other organizations' workspaces
  • Existing users can be forcefully granted ownership, enabling griefing, lockouts, or abuse under their identity
  • Sensitive data, configuration, and multi-agent workflows within the workspace may be exposed, modified, or deleted
  • Further lateral movement across the platform if workspace ownership confers additional platform-wide capabilities

General mitigation guidance

Effective mitigation focuses on enforcing strict, role-aware authorization for membership changes and centralizing permission logic.

Common defensive patterns include:

  • Requiring high-privilege roles (such as owner or admin) to perform member addition and role assignment operations
  • Implementing server-side checks that validate the caller's effective permissions against the requested role changes, independent of client input
  • Defining a clear authorization matrix for workspace actions and enforcing it consistently across all service layers and helper functions
  • Ensuring that domain services like MemberService.add perform their own authorization or are only reachable through well-guarded entry points
  • Applying least-privilege defaults so minimal roles cannot perform administrative or cross-tenant actions, even indirectly

How teams detect issues like this

Organizations can identify similar authorization weaknesses through a combination of code-level and behavioral analysis:

  • Static analysis rules that flag sensitive operations (e.g., role changes, membership modifications) lacking explicit authorization checks
  • Code review practices that require mapping each privileged action to a documented authorization policy or permission gate
  • Centralized authorization middleware or policy engines (e.g., RBAC/ABAC) and checks for any bypasses around them
  • Logging and monitoring of role changes, especially promotions to owner/admin, with alerts for anomalous patterns such as low-privilege users initiating such changes
  • Periodic security tests or red-team exercises targeting multi-tenant boundaries and workspace management endpoints

Sources

SourceLink
github.comgithub.com/MervinPraison/PraisonAI/commit/ef79b7a0561796ad9807f0f09538c25cc78d3619
github.comgithub.com/MervinPraison/PraisonAI/security/advisories/GHSA-8g2p-pqm3-fcfh

Frequently asked

questions

Yes. Any authenticated user with access to the affected API and membership in a workspace can exploit it over the network, without needing local access to the server.

The attacker only needs the lowest workspace role that meets the min_role="member" requirement. Once inside the workspace as a basic member, they can use the vulnerable endpoint to assign higher roles, including owner.

Implement strict authorization checks on all membership and role-changing operations, ensuring that only appropriately privileged roles (e.g., owners or admins) can add or promote members. This logic should be enforced server-side and, ideally, centralized so it cannot be bypassed.

Adopt a robust access-control design with clearly defined permission matrices, enforce least privilege, and require security review of all endpoints that modify roles, membership, or cross-tenant relationships. Complement this with automated checks and tests that verify sensitive actions always pass through explicit authorization controls.

Find out what's already
exploitable in your codebase.