🛡️ CVE-2026-47405 — praisonai-platform

🟠 CVSS 8.8 — High ✅ No Known Exploit CWE-284 NVD
8.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

PraisonAI Platform: Missing role checks let any workspace member become owner and control workspace membership

Summary

PraisonAI Platform has a broken workspace authorization check that allows any authenticated low-privilege workspace member to escalate their own role to owner.

The issue is caused by privileged workspace-management routes using the shared dependency require_workspace_member(...) without requiring admin or owner. The dependency defaults to min_role="member", so routes that should be administrative are accessible to ordinary workspace members.

As a result, a normal workspace member can:

  • promote their own account from member to owner;
  • add arbitrary users as owner or admin;
  • change other members' roles;
  • remove legitimate owners or members;
  • take over workspace membership completely;
  • perform destructive workspace operations after escalation.

This is a broken access control / vertical privilege escalation vulnerability.

Details

The vulnerable authorization dependency is defined in:

```text

praisonai_platform/api/deps.py

````

The dependency defaults to the lowest workspace role:

```python

async def require_workspace_member(

workspace_id: str,

user: AuthIdentity = Depends(get_current_user),

session: AsyncSession = Depends(get_db),

min_role: str = "member",

) -> AuthIdentity:

...

has = await member_svc.has_role(workspace_id, user.id, min_role)

```

Because min_role defaults to "member", any route using:

```python

Depends(require_workspace_member)

```

without explicitly passing a stronger role only requires ordinary workspace membership.

Privileged workspace-management routes in:

```text

praisonai_platform/api/routes/workspaces.py

```

use this dependency unchanged on administrative actions, including:

```text

PATCH /workspaces/{workspace_id}

DELETE /workspaces/{workspace_id}

POST /workspaces/{workspace_id}/members

PATCH /workspaces/{workspace_id}/members/{user_id}

DELETE /workspaces/{workspace_id}/members/{user_id}

```

These routes allow workspace modification, deletion, member addition, role changes, and member removal. They should require admin or owner, but they currently require only member.

The membership service does not provide a second authorization layer. In:

```text

praisonai_platform/services/member_service.py

```

the mutation methods perform the requested change after the route-level check passes:

```python

async def add(...):

member = Member(workspace_id=workspace_id, user_id=user_id, role=role)

async def update_role(...):

member = await self.get(workspace_id, user_id)

member.role = new_role

async def remove(...):

member = await self.get(workspace_id, user_id)

await self._session.delete(member)

```

Therefore, the weak route dependency is the effective authorization boundary.

A low-privilege user can also learn their own user.id from the normal authentication response. The login/register response includes the authenticated user object:

```text

TokenResponse.token

TokenResponse.user.id

```

This allows an invited low-privilege member to target their own membership record and self-promote.

Affected component

```text

Package: praisonai-platform

Verified version: 0.1.2

Verified source commit: d8a8a78

Affected components:

  • praisonai_platform/api/deps.py
  • praisonai_platform/api/routes/workspaces.py
  • praisonai_platform/services/member_service.py
  • praisonai_platform/api/routes/auth.py
  • praisonai_platform/api/schemas.py

```

PoC

The following PoC is self-contained and exercises the real PraisonAI Platform FastAPI application path. It does not mock the vulnerable RBAC logic.

The PoC:

1. Creates the real FastAPI app with praisonai_platform.api.app.create_app().

2. Registers three users through the real /api/v1/auth/register route.

3. Creates a workspace as the original owner.

4. Adds the second user as a normal member.

5. Logs in as that low-privilege member.

6. Uses the low-privilege member token to self-promote to owner.

7. Uses the same token to add a third account as owner.

8. Uses the same token to remove the original owner.

9. Confirms the workspace membership has been taken over.

Full PoC code

```python

#!/usr/bin/env python3

"""Self-contained local replay for PraisonAI Platform workspace RBAC bypass."""

from __future__ import annotations

import asyncio

import os

import sys

import types

import uuid

from pathlib import Path

from httpx import ASGITransport, AsyncClient

from sqlalchemy.ext.asyncio import create_async_engine

REPO_ROOT = Path(__file__).resolve().parents[3] / "repos" / "praisonai"

PLATFORM_ROOT = REPO_ROOT / "src" / "praisonai-platform"

AGENTS_ROOT = REPO_ROOT / "src" / "praisonai-agents"

def verify_source() -> None:

expected = {

PLATFORM_ROOT / "praisonai_platform/api/deps.py": [

'min_role: str = "member"',

"member_svc.has_role(workspace_id, user.id, min_role)",

],

PLAT

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2026-47405 is classified as CWE-284: Improper Access Control. The software does not restrict an action to the actors that should be allowed to perform it.

Affected software

CVE-2026-47405 is recorded against 2 packages.

  • praisonai-platform (fixed in 0.1.4)
  • unknown

Timeline and source

Published on 29 May 2026 and last revised on 13 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
github.com (Package)

Details

Severity HIGH
CVSS Score 8.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE CWE-284
Public Exploit ✅ No
Source NVD
Published 2026-05-29
Updated 2026-08-12
Modified 2026-07-13
Fix URL N/A

Affected Packages

Software From version Fixed in
praisonai-platform 0.1.4
unknown

Similar Threats

Site Security Check

Is praisonai-platform part of your stack?

CVE-2026-47405 is rated CVSS 8.8 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.