/

CVE-2026-47419

Severity:

HIGH RISK

(8.3)

IDOR (CWE-639) in PraisonAI Platform Agents API

CVE-2026-47419

Deferred

Vulnerability type

Category:

Insecure Direct Object Reference

CWE:

CWE-639

Impact:

Horizontal Authorization Bypass across Workspaces

Severity:

HIGH RISK

(8.3)

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

An insecure direct object reference in PraisonAI Platform's agent CRUD endpoints lets users access agents outside their own workspace by referencing arbitrary agent IDs.

If an attacker can guess or obtain a valid agent UUID, they may read, modify, or delete agents belonging to other workspaces despite only being a member of a single workspace.

Affected context

This vulnerability appears in the multi-tenant API layer of PraisonAI Platform when handling agent resources scoped by workspace.

The endpoints for reading, updating, and deleting agents only verify that the caller is a member of some workspace, then perform a direct primary-key lookup on agent_id without enforcing that the agent actually belongs to the same workspace.

It tends to surface in deployments where agent identifiers are globally unique and can be guessed, shared, logged, or discovered through other parts of the system.

Exploit preconditions

  • Attack surface: HTTP API endpoints:
  • GET /workspaces/{workspace_id}/agents/{agent_id}
  • PATCH /workspaces/{workspace_id}/agents/{agent_id}
  • DELETE /workspaces/{workspace_id}/agents/{agent_id}
  • Required access: Authenticated user with membership in any workspace (not necessarily the victim's).
  • Trigger point: Supplying an agent_id that belongs to another workspace while using a workspace path value the attacker controls.
  • Why exploitation is possible: Authorization is checked only at the workspace level via require_workspace_member(workspace_id), but agent_id resolution uses a global primary-key lookup (AgentService.get(agent_id)) without validating the agent's workspace ownership, allowing cross-tenant access by ID.

Why this happens

The core issue is a broken object-level authorization pattern consistent with CWE-639: Authorization Bypass Through User-Controlled Key.

The API trusts client-supplied identifiers (agent_id in the path) and checks only that the caller belongs to some workspace, not that the targeted agent is within that same workspace.

Because the service performs a global primary-key lookup and returns or mutates the agent regardless of its actual workspace, the resource-level authorization boundary is effectively missing, enabling horizontal privilege escalation between tenants.

Potential impact

  • An authenticated user could read configuration and metadata of agents belonging to other workspaces.
  • Attackers could modify agent behavior in another workspace, potentially altering prompts, tools, or connected resources.
  • Malicious users could delete agents in other workspaces, disrupting operations and availability.
  • Sensitive business logic or proprietary configurations managed by agents could be exposed to unauthorized parties.

General mitigation guidance

Effective mitigation centers on enforcing object-level authorization that ties every agent operation to its owning workspace or tenant.

Common patterns include:

  • Resolving agents using queries constrained by both workspace_id and agent_id, ensuring they match before performing operations.
  • Implementing centralized authorization checks that validate resource ownership regardless of the path structure.
  • Treating all client-supplied identifiers as untrusted and verifying they belong to the caller's authorized scope before access.
  • Designing APIs so that resource identifiers are scoped, opaque, or derived per-tenant, reducing the risk of cross-tenant ID reuse.
  • Applying least-privilege principles by limiting which roles can perform cross-workspace operations, if ever allowed, via explicit, audited mechanisms rather than implicit ID-based access.

How teams detect issues like this

Organizations can detect similar issues through a combination of review and automated checks:

  • Code review: Look for controllers or handlers that accept user-controlled IDs and perform direct get(id) or primary-key lookups without accompanying scope filters (such as WHERE workspace_id = …).
  • Static analysis: Configure rules to flag authorization checks that are performed before, but not tied to, specific resource lookups, especially in multi-tenant contexts.
  • API tests: Implement automated tests for Insecure Direct Object Reference by attempting access to resources created under one tenant using credentials from another tenant.
  • Logging and monitoring: Monitor access logs for patterns where a single user accesses many distinct IDs across multiple tenants or workspaces, which may indicate ID enumeration or abuse.

Sources

SourceLink
github.comgithub.com/MervinPraison/PraisonAI/commit/ef79b7a0561796ad9807f0f09538c25cc78d3619
github.comgithub.com/MervinPraison/PraisonAI/security/advisories/GHSA-7p8g-6c6g-h9w7

Frequently asked

questions

Exploitation is limited to authenticated users, but any user who can access one workspace may reach agents in other workspaces if they obtain or guess valid agent IDs, making the impact significant in shared or hosted environments.

The attacker must be an authenticated member of at least one workspace; no administrative privileges are required.

With that level of access and a target agent's ID, they can read, update, or delete agents in other workspaces.

Enforce strict object-level authorization by ensuring every agent lookup is constrained by both the caller's authorized workspace and the agent identifier.

In practice, this means queries (and service methods) must verify workspace ownership before returning or mutating any agent.

Adopt a standard authorization layer that binds every resource to a tenant or workspace, and require that all handlers use it.

Combine this with security-focused code reviews, automated IDOR tests in CI, and design guidelines that treat user-controlled IDs as untrusted and always subject to scope validation.

Find out what's already
exploitable in your codebase.