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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mastra-ai | mastra | ≤ 1.63.0 | — |
References
- GitHub Issue #18911 issue-tracking
- https://github.com/mastra-ai/mastra product
- Vulnerable code: utils.ts technical-description
- VulnCheck Advisory: Mastra Memory API Thread Ownership Check Is a No-op When mapUserToResourceId Is Unset third-party-advisory