fix IDOR cross organization PROJECT_GET#2483
Open
0xcucumbersalad wants to merge 4 commits intodecocms:mainfrom
Open
fix IDOR cross organization PROJECT_GET#24830xcucumbersalad wants to merge 4 commits intodecocms:mainfrom
0xcucumbersalad wants to merge 4 commits intodecocms:mainfrom
Conversation
Contributor
Release OptionsShould a new version be published when this PR is merged? React with an emoji to vote on the release type:
Current version: Deployment
|
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
viktormarinho
approved these changes
Feb 24, 2026
Contributor
There was a problem hiding this comment.
1 issue found across 1 file (changes from recent commits).
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/mesh/src/tools/projects/get.ts">
<violation number="1" location="apps/mesh/src/tools/projects/get.ts:55">
P2: Non-null assertion on ctx.organization can throw when authenticated context lacks organization scope; requireAuth doesn’t guarantee organization is set.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this contribution about?
This PR fixes a cross-organization access control issue in the
GET projectendpoint.Previously, it was possible to retrieve project data across organizations by manipulating identifiers, without properly validating that the authenticated user belonged to the same organization as the requested project. This created a potential authorization bypass / cross-tenant data exposure risk.
Changes made:
Why this is needed:
Mesh is a multi-tenant system. Allowing cross-organization access breaks tenant isolation and may lead to sensitive data exposure. This fix enforces proper tenant boundaries and strengthens overall security.
Summary by cubic
Fix cross-organization access in the GET project tool by scoping lookups to the authenticated organization. Prevents IDOR and cross-tenant data exposure.
Written for commit e5a78e1. Summary will update on new commits.