Repository navigation
Public scope fix - #519
Merged
Merged
Public scope fix#519
Conversation
To verify that a resource is within the scope of a public link token, both the resourceId from the scope and the accessed reference need to be Stat'ed in order to check: a) whether they're within the same space (by checking the space ids) b) whether the accessed ref is actually a child of the shared resource (by checking the paths) Additionally the cache key for the 'scopeExpansionCache' is fixed to to take the resource id of the target resource into account. scope# This is the commit message #2: With the above fixes the `checkRelativeRefernce()` method is no longer needed and was removed. It contained another bug that would allow access to resources out of the share scope. Fixes: CVE-2026-23989
This includes: * test for accessing non-shared resource using a publiclink token * tests that verify read links do not allow write operations * test for sharing a direct child of the space root
v-scharf
approved these changes
Feb 5, 2026
aduffeck
approved these changes
Feb 5, 2026
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.
Fixes: CVE-2026-23989