/

CVE-2026-47405

Severity:

HIGH RISK

(8.8)

Broken Access Control (CWE-284) in PraisonAI Platform

CVE-2026-47405

Deferred

Vulnerability type

Category:

Broken Access Control / Vertical Privilege Escalation

CWE:

CWE-284, CWE-862

Impact:

Privilege Escalation and Workspace Takeover

Severity:

HIGH RISK

(8.8)

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 broken access control flaw that lets any authenticated workspace member elevate their own role to owner through misconfigured authorization checks.

When administrative workspace-management routes only require generic membership instead of admin or owner permissions, low-privilege users can perform vertical privilege escalation and fully take over a workspace.

Affected context

This vulnerability arises in PraisonAI Platform deployments that use role-based workspace permissions, where administrative actions (such as role changes and membership management) are gated behind shared authorization dependencies.

The affected context is specifically workspace-management routes that rely on require_workspace_member(...) with its default min_role="member" setting, without explicitly enforcing that only admins or owners can invoke those routes.

In environments where any authenticated user can join or be invited as a regular member, the platform may unintentionally grant them administrative capabilities over the workspace.

Exploit preconditions

  • Attack surface: Workspace-management HTTP routes in the PraisonAI Platform API.
  • Required access: The attacker must be an authenticated user and a member of a target workspace with at least the default member role.
  • Trigger point: Invoking privileged routes (e.g., role updates, membership modification, workspace settings changes) that incorrectly use require_workspace_member(...) without a stricter min_role requirement.
  • Why exploitation is possible: The shared authorization dependency treats all workspace members as sufficiently privileged, failing to differentiate between routine members and administrative roles, which allows vertical privilege escalation from member to owner.

Why this happens

The root cause maps to CWE-284: Improper Access Control and CWE-862: Missing Authorization.

PraisonAI Platform centralizes authorization in a shared dependency require_workspace_member(...) that defaults to min_role="member".

Administrative workspace routes, which should enforce admin or owner roles, are implemented using this dependency without overriding the default, so they only check that the caller belongs to the workspace and do not verify higher privileges.

Conceptually, this is a broken role-based access control pattern: sensitive operations depend on a generic membership check, rather than an explicit authorization check for elevated roles, allowing ordinary users to call endpoints that modify roles, membership, and workspace state.

Potential impact

  • A regular workspace member may escalate their own role to owner.
  • Attackers could add arbitrary users as owner or admin within the workspace.
  • Workspace members can change other users' roles, including demoting or removing legitimate owners.
  • An attacker may take over workspace membership completely and lock out rightful users.
  • Elevated users can perform destructive operations on the workspace, such as deleting resources or reconfiguring multi-agent teams.

General mitigation guidance

Effective mitigation focuses on tightening authorization boundaries around administrative functionality and ensuring role checks reflect the sensitivity of each operation.

Common defensive patterns include:

  • Defining explicit, non-default authorization requirements for all privileged routes (e.g., only admin or owner roles for membership and role-management endpoints).
  • Separating "member-only" functionality from "admin/owner" functionality in routing and middleware design, so shared dependencies cannot inadvertently grant elevated access.
  • Applying a central policy that all state-changing operations on roles, membership, and workspace configuration require elevated privileges and cannot rely on generic membership checks.
  • Designing APIs so the least-privileged role can perform only non-destructive, non-administrative actions, and validating these rules through tests and security review.
  • Using defense-in-depth controls such as audit logging and alerting on anomalous role changes to detect misuse even if authorization bugs occur.

How teams detect issues like this

Detection typically involves a combination of code-level and behavioral analysis:

  • Static analysis or manual code review to identify routes that modify roles, membership, or workspace state but only enforce generic membership checks (e.g., min_role="member" on administrative endpoints).
  • Policy-based reviews that map each endpoint to required roles and flag any that handle sensitive operations without explicit admin/owner checks.
  • Automated testing or security-focused unit tests that assert non-admin members cannot access role-change or workspace-management endpoints.
  • Runtime monitoring and audit logs that track role changes, membership modifications, and workspace deletions, enabling investigation of suspicious actions performed by non-admin users.
  • Integrating automated security review tools into CI/CD pipelines to detect common broken access control patterns and missing authorization checks before deployment.

Sources

SourceLink
github.comgithub.com/MervinPraison/PraisonAI/commit/24385d64876577620f749957bd4814f162f4ca47
github.comgithub.com/MervinPraison/PraisonAI/pull/1686
github.comgithub.com/MervinPraison/PraisonAI/security/advisories/GHSA-h37g-4h4p-9x97

Frequently asked

questions

Exploitation generally requires being an authenticated workspace member. Anonymous users without workspace membership cannot trigger the affected routes, but any low-privilege member can attempt escalation if the flawed checks are present.

No. The issue specifically enables vertical privilege escalation from a basic member role to owner. A user with only minimal workspace access can use misconfigured administrative endpoints to gain full control.

The safest pattern is to enforce explicit, role-aware authorization for every administrative operation. Rather than relying on a generic membership check, each privileged endpoint should require a clearly defined elevated role and be tested to ensure non-privileged users receive access denied responses.

Prevention relies on designing role-based access control as a first-class concern: centrally define roles and their permissions, use shared authorization components with secure defaults, require security review for any endpoint that changes roles or membership, and maintain tests and automated checks that validate authorization rules across the API surface.

Find out what's already
exploitable in your codebase.