fix(security): scope memory tools to session userId — M2-003/004 #294
Reference in New Issue
Block a user
Delete Branch "fix/m2-prefs-memory-scope"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Security Impact
Before this fix, all four memory tools accepted userId as an LLM-controlled parameter, meaning the model could access or write to any user's memory data. The fix closes this injection vector — memory operations are now scoped to the session owner, not to whatever userId the model provides.
Test plan