CVE-2026-82273
nicheMissing Authorization in Mastra Memory API Leaks Other Users' AI Threads
Mastra through 1.63.0 contains a missing-authorization flaw (CWE-862) in the memory API's thread ownership validation, which is bypassed when deployments omit the mapUserToResourceId callback from their memory configuration. An attacker with valid credentials can exploit it by sending GET /api/memory/threads to a Mastra server, enumerating every stored thread rather than only their own. As a result, the attacker can read conversation history and metadata belonging to other resource owners, a high-confidentiality information disclosure with no integrity or availability impact (CVSS 4.0: 7.1 High). Any deployment running Mastra at version 1.63.0 or earlier that exposes the memory API to authenticated, multi-resource users without the callback configured is affected. No public proof-of-concept, KEV listing, or confirmed in-the-wild exploitation is known, and EPSS currently estimates only a 0.3% probability of exploitation within 30 days.
What to do: Upgrade Mastra to the first patched release after 1.63.0 (the fixed version is not specified in the available data). As a workaround, configure the mapUserToResourceId callback in the memory settings so per-resource thread ownership is enforced, and restrict network access to /api/memory/threads. Check server logs for authenticated users enumerating or reading threads they do not own.
| Mastra (TypeScript AI agent framework, memory API) | all versions through and including 1.63.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
- Weakness
- CWE-862
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.