Fix cross-session task leakage (#1486)
This commit is contained in:
parent
0da5d3f669
commit
65bbceab77
1 changed files with 146 additions and 14 deletions
5
.changeset/fix-task-session-isolation.md
Normal file
5
.changeset/fix-task-session-isolation.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@modelcontextprotocol/core': patch
|
||||
---
|
||||
|
||||
Fix InMemoryTaskStore to enforce session isolation. Previously, sessionId was accepted but ignored on all TaskStore methods, allowing any session to enumerate, read, and mutate tasks created by other sessions. The store now persists sessionId at creation time and enforces ownership on all reads and writes.
|
||||
Loading…
Reference in a new issue