/

CVE-2026-47415

Severity:

HIGH RISK

(8.3)

IDOR (CWE-639) in PraisonAI workspace issues API

CVE-2026-47415

Deferred

Vulnerability type

Category:

Insecure Direct Object Reference (IDOR)

CWE:

CWE-639

Impact:

Cross-Tenant Data Exposure and Tampering

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

PraisonAI Platform versions prior to 0.1.4 contain an insecure direct object reference in the issue CRUD API for workspaces.

Any authenticated user who is a member of one workspace can directly access, modify, or delete issues belonging to other workspaces by targeting their IDs, exposing cross-tenant data and integrity risks.

Affected context

This vulnerability appears in the PraisonAI Platform's workspace issue management APIs, specifically the CRUD endpoints at:

  • GET /workspaces/{workspace_id}/issues/{issue_id}
  • PATCH /workspaces/{workspace_id}/issues/{issue_id}
  • DELETE /workspaces/{workspace_id}/issues/{issue_id}

It manifests when the application checks only that a user belongs to the referenced workspace, but then loads the issue by its primary key without confirming that the issue itself belongs to that workspace. In deployments where multiple tenants or teams share the same backend, this creates a cross-workspace access gap.

Exploit preconditions

  • Attack surface: Authenticated HTTP API endpoints for issue management.
  • Required access: Membership in any valid workspace and the ability to send requests to the issue CRUD endpoints.
  • Trigger point: Supplying an issue_id that belongs to a different workspace than the workspace_id in the request path.
  • Why exploitation is possible: Authorization is enforced only at the workspace level (require_workspace_member(workspace_id)), while the issue is fetched by primary key via IssueService.get(issue_id) with no constraint tying it back to the specified workspace. This mismatch allows a user to reference resources outside their authorized workspace.

Why this happens

The root cause is an authorization logic flaw where resource-level access control is not aligned with the data model. The API trusts that the issue_id provided in a URL under /workspaces/{workspace_id} inherently belongs to that workspace and therefore only verifies workspace membership.

However, the implementation uses a generic primary-key lookup (IssueService.get(issue_id)) that does not filter by workspace. This pattern matches CWE-639: Insecure Direct Object Reference, where a direct identifier from user input is used to access a backend object without re-validating ownership or context, breaking tenant isolation and enabling horizontal privilege escalation.

Potential impact

  • Unauthorized reading of issues from other workspaces, exposing cross-tenant or cross-team information.
  • Unauthorized modification of issues in other workspaces, including changing descriptions, status, or metadata.
  • Unauthorized deletion of issues belonging to other workspaces, causing data loss and workflow disruption.
  • Potential leakage of internal identifiers, relationships, or metadata that can aid further lateral movement.

General mitigation guidance

Effective mitigation focuses on enforcing authorization at the resource level and binding objects to their owning context:

  • Ensure that issue lookups always include the associated workspace (for example, querying by both workspace_id and issue_id).
  • Centralize authorization checks so that every access to an issue verifies ownership, tenant, or workspace membership, not just the outer path parameter.
  • Treat all user-supplied identifiers as untrusted, and re-derive the resource scope from server-side data rather than request paths alone.
  • Adopt a defense-in-depth approach by modeling resource ownership explicitly in the domain layer and enforcing it in service methods, not only at the controller or routing layer.

How teams detect issues like this

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

  • Static and code review: Look for controller or route handlers where:
  • Authorization checks are made only on a parent identifier (e.g., workspace_id), while the child resource is fetched solely by primary key.
  • Service methods like get(id) are used in multi-tenant contexts without additional scoping criteria.
  • Automated scanning: Use application security testing tools configured to probe IDOR patterns by mutating path and ID parameters across tenants.
  • Logging and monitoring: Instrument APIs to log mismatches between requested workspace and the actual workspace of the loaded issue and alert on cross-tenant access patterns.
  • Policy enforcement: Introduce linting or architectural rules requiring all data access methods in multi-tenant modules to accept and enforce a tenant or workspace scope parameter.

Sources

SourceLink
github.comgithub.com/MervinPraison/PraisonAI/commit/ef79b7a0561796ad9807f0f09538c25cc78d3619
github.comgithub.com/MervinPraison/PraisonAI/security/advisories/GHSA-xwq8-frcg-77q8

Frequently asked

questions

Exploitation is limited to authenticated users who are members of at least one workspace. However, within that constraint, any such user can target issues in other workspaces if they can guess or enumerate issue identifiers.

An attacker needs valid credentials and membership in any workspace on the platform, plus the ability to send crafted requests to the issue CRUD endpoints. No elevated administrative privileges are required; standard workspace membership is enough.

The most robust fix is to tie every issue lookup explicitly to its owning workspace or tenant. This means querying issues by both workspace_id and issue_id and failing requests where the issue's recorded workspace does not match the requested one. Centralizing this logic in the domain/service layer helps ensure consistency across endpoints.

Prevention typically involves designing APIs and data access layers with strict resource scoping, treating all client-supplied identifiers as untrusted, and mandating tenant or workspace filters for all queries in multi-tenant contexts. Complementary practices include security-focused code reviews, automated checks for IDOR patterns, and clear architectural guidelines for access control in new features.

Find out what's already
exploitable in your codebase.