/

CVE-2026-47414

Severity:

HIGH RISK

(7.6)

IDOR on Label Management (CWE-639) in PraisonAI

CVE-2026-47414

Deferred

Vulnerability type

Category:

Insecure Direct Object Reference

CWE:

CWE-639

Impact:

Unauthorized Cross-Tenant Data Access and Modification

Severity:

HIGH RISK

(7.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 an Insecure Direct Object Reference in multiple label-related endpoints that trust client-supplied label_id and issue_id values.

When a user is a member of any workspace, they can operate on labels and issues outside that workspace by referencing arbitrary identifiers in the URL, potentially leading to cross-workspace data tampering and unauthorized access.

Affected context

This vulnerability occurs in PraisonAI Platform deployments exposing the label management API for multi-workspace teams.

It affects environments where:

  • Users can interact with workspaces they are members of.
  • Label and issue identifiers are globally addressable or reused across workspaces.
  • The backend relies solely on workspace membership checks without confirming that target labels and issues belong to the same workspace.

Exploit preconditions

  • Attack surface: Public or internal HTTP API endpoints:
  • PATCH /workspaces/{workspace_id}/labels/{label_id}
  • DELETE /workspaces/{workspace_id}/labels/{label_id}
  • POST /workspaces/{workspace_id}/issues/{issue_id}/labels/{label_id}
  • DELETE /workspaces/{workspace_id}/issues/{issue_id}/labels/{label_id}
  • GET /workspaces/{workspace_id}/issues/{issue_id}/labels
  • Required access: Attacker must be an authenticated member of at least one workspace.
  • Trigger point: Supplying crafted label_id and/or issue_id values in the URL path parameters while calling these endpoints.
  • Why exploitation is possible: The platform gates access on require_workspace_member(workspace_id) but does not validate that the referenced labels or issues are owned by the specified workspace, allowing operations on objects from other workspaces or tenants.

Why this happens

The underlying bug is an authorization design flaw where object-level access control is incomplete.

The API correctly verifies that the caller is a member of some workspace but then forwards URL-supplied label_id and issue_id directly to LabelService without enforcing a relationship between those objects and the workspace_id.

This maps to CWE-639: Insecure Direct Object Reference (IDOR), where untrusted identifiers are used to access backend objects without sufficient ownership or scope checks, enabling horizontal or cross-tenant privilege escalation.

Potential impact

  • Attackers can modify labels attached to issues in other workspaces they do not belong to.
  • Attackers may attach or detach labels on cross-workspace issues, altering workflows or automation triggers.
  • Unauthorized viewing of label associations for issues in other workspaces, potentially leaking metadata or organizational structure.
  • Cross-tenant data corruption if labels and issues are shared across different customers or teams.
  • Misclassification or silent tampering with multi-agent task tracking and audit trails.

General mitigation guidance

Effective mitigation centers on enforcing object-level authorization and tightening identifier trust boundaries.

Recommended patterns include:

  • Validating that every label_id and issue_id used in workspace-scoped endpoints is explicitly owned by, or associated with, the given workspace_id.
  • Designing identifiers to be workspace-scoped or tenant-scoped, rather than globally addressable, to limit cross-context access.
  • Implementing a consistent authorization layer that checks both user permissions and object relationships before performing operations.
  • Avoiding direct use of client-supplied IDs in business services without prior lookup and ownership verification.
  • Applying least-privilege role and permission models so membership does not automatically grant broad modification abilities.

How teams detect issues like this

Detection commonly focuses on both code-level signals and behavioral anomalies:

  • Static or manual review to find endpoints that:
  • Use client-supplied IDs (e.g., {label_id}, {issue_id}) and
  • Rely solely on coarse checks (like workspace membership) without verifying object ownership or scope.
  • Establishing patterns in code review where every object access requires a join or lookup confirming object.workspace_id == workspace_id (or analogous constraints).
  • Using automated security testing or API fuzzing to attempt cross-workspace operations by mixing valid workspace_id values with foreign label_id and issue_id values.
  • Monitoring logs for repeated 4xx responses or unusual combinations of workspace and object identifiers that may indicate probing for IDOR weaknesses.
  • Applying policy-based authorization frameworks that make missing relationship checks easier to spot in code.

Sources

SourceLink
github.comgithub.com/MervinPraison/PraisonAI/commit/ef79b7a0561796ad9807f0f09538c25cc78d3619
github.comgithub.com/MervinPraison/PraisonAI/pull/1685
github.comgithub.com/MervinPraison/PraisonAI/security/advisories/GHSA-5jx9-w35f-vp65

Frequently asked

questions

It is exploitable by any authenticated user who is a member of at least one workspace and can derive or guess valid label_id or issue_id values from other workspaces, making it a serious cross-workspace access control issue.

The attacker needs valid credentials and membership in a workspace on the PraisonAI Platform. From there, they can call the affected endpoints and reference labels and issues belonging to other workspaces.

The safest approach is to enforce strict object-level authorization: whenever an endpoint is scoped to a workspace_id, ensure that all referenced resources (label_id, issue_id) are looked up and confirmed as belonging to that workspace before any read or write operation.

Future APIs should treat client-supplied identifiers as untrusted and always couple authorization decisions to both user permissions and object ownership. Establishing standard authorization helpers, using workspace-scoped identifiers, enforcing multi-tenant boundaries, and incorporating access control checks into automated testing and code review practices reduces the likelihood of IDOR vulnerabilities.

Find out what's already
exploitable in your codebase.