Skip to content

fix(mcp): resolve security access check bypass in getDocument tool - #1609

Open
Adityakk9031 wants to merge 1 commit into
supermemoryai:mainfrom
Adityakk9031:fix/mcp-get-document-security-bypass
Open

fix(mcp): resolve security access check bypass in getDocument tool#1609
Adityakk9031 wants to merge 1 commit into
supermemoryai:mainfrom
Adityakk9031:fix/mcp-get-document-security-bypass

Conversation

@Adityakk9031

Copy link
Copy Markdown
Contributor

This PR fixes a security check bypass in the getDocument MCP tool. Since document.containerTags is undefined on the returned schema, the container tag access validation was being skipped. This fix maps spaceContainerTag from document.memoryEntries to properly validate space boundaries.

@Adityakk9031

Copy link
Copy Markdown
Contributor Author

@MaheshtheDev have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant