Summary
PraisonAI Platform versions prior to 0.1.4 contain an Insecure Direct Object Reference in the issue dependency endpoints, allowing users to reference issues and dependencies outside their authorized workspace.
By supplying arbitrary issue or dependency IDs in the URL or request body, an attacker can create or manipulate cross-workspace relationships between issues, potentially corrupting project workflows and exposing sensitive linkage metadata.
Affected context
This vulnerability appears in the PraisonAI Platform backend handling issue dependencies within workspaces.
It affects deployments where:
- Multi-tenant or multi-workspace isolation relies on per-workspace membership checks, and
- Dependency endpoints accept issue and dependency IDs from URLs or request bodies without verifying they belong to the same, checked workspace.
The affected routes include:
POST /workspaces/{workspace_id}/issues/{issue_id}/dependenciesGET /workspaces/{workspace_id}/issues/{issue_id}/dependenciesDELETE /workspaces/{workspace_id}/issues/{issue_id}/dependencies/{dep_id}
Exploit preconditions
- Attack surface: PraisonAI Platform HTTP API, specifically issue dependency endpoints.
- Required access: Valid authenticated user account with membership in at least one workspace.
- Trigger point: Supplying arbitrary
issue_id,dep_id, ordepends_on_issue_idvalues in the URL or request body. - Why exploitation is possible: The authorization layer only verifies membership of the outer
workspace_idparameter, while the service layer accepts and processes issue and dependency IDs without confirming they belong to that workspace or are otherwise authorized for the caller.
Why this happens
The core problem is a missing object-level authorization check on IDs provided by the client.
After confirming that the caller is a member of a given workspace, the implementation forwards issue and dependency identifiers directly into DependencyService methods without verifying that:
- The target issue belongs to the same workspace, or
- The dependency record is scoped to the workspace where membership was checked.
This pattern matches CWE-639: Insecure Direct Object Reference (IDOR), where security decisions are made on contextual parameters (like workspace membership), but object identifiers are trusted at face value and not revalidated against that context.
Potential impact
- Attackers could create "blocks" or "related" links between issues in different workspaces, including those they do not belong to.
- Cross-tenant or cross-project data relationships could be forged, leading to workflow corruption and misleading dependency graphs.
- Sensitive issue metadata (such as existence and identifiers) may be inferred across workspaces by observing which IDs are accepted or rejected.
- Administrative and reporting features relying on dependency graphs could be skewed, impacting prioritization and planning decisions.
General mitigation guidance
Effective mitigation focuses on enforcing object-level authorization for all client-supplied identifiers.
Common defensive patterns include:
- Validating that every referenced issue and dependency record belongs to the workspace (or tenancy) where access control was performed.
- Centralizing authorization logic so that service-layer functions accept only already-authorized domain objects rather than raw IDs.
- Designing route handlers to derive related object identifiers from the verified context (such as workspace and issue associations) instead of trusting arbitrary IDs from the request body.
- Applying defense-in-depth by checking both tenant/workspace ownership and user-level permissions before allowing dependency creation, listing, or deletion.
These patterns reduce reliance on URL structure alone and ensure that all object references are consistently scoped.
How teams detect issues like this
Detection typically combines code-level and behavior-level analysis:
- Static analysis: Search for controller or route handlers where authorization is checked only on high-level parameters (e.g., workspace ID) while other identifiers (issue IDs, dependency IDs) are passed directly to service methods without ownership checks.
- Code review: Flag places where methods accept raw IDs from requests and perform business operations without:
- Loading the object in the context of the current workspace, or
- Verifying that the loaded object belongs to the authorized scope.
- Logging and monitoring: Instrument dependency creation and deletion operations with workspace and issue identifiers, then alert on unusual cross-workspace patterns or unexpected combinations of IDs.
- Automated tools: Use application security testing (SAST/DAST) tools configured to probe multi-tenant endpoints for inconsistent authorization behavior when object IDs are manipulated.

