Mastra Memory API Thread Ownership Check Is a No-op When mapUserToResourceId Is Unset
mastra-ai mastra
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| mastra-ai mastra |
| No fix yet |
Original description
Mastra through 1.63.0 contains an authentication bypass vulnerability in the memory API thread ownership validation when mapUserToResourceId callback is omitted from configuration. Authenticated attackers can enumerate all threads via GET /api/memory/threads and read conversation history and metadata of other resource owners.
From the CVE record · VulnCheck