Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid low-privilege account credentials
-
DeliveryAuthenticate to Mastra server
-
ExploitIssue GET /api/memory/threads
-
ExecutionBypass no-op ownership check (mapUserToResourceId absent)
-
PersistEnumerate all threads across all resource owners
-
ImpactExtract conversation history and metadata
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two conditions to be true simultaneously: (1) the attacker holds any valid authenticated session on the target Mastra instance (PR:L per the provided CVSS 4.0 vector - unauthenticated access is insufficient); and (2) the Mastra server is configured WITHOUT the |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) indicates low-complexity network exploitation requiring only a low-privilege authenticated session, with high confidentiality impact and no integrity or availability consequence. No EPSS score is available in the provided data, limiting quantitative exploitation probability assessment. The absence of a KEV listing and confirmed POC suggests this is not yet exploited at scale; however, the VulnCheck disclosure makes the mechanism fully public, lowering the bar for future exploitation. Real-world risk is gated on deployment configuration: only Mastra instances omitting |
| Exploit ScenarioDerived | An authenticated user on a multi-tenant Mastra deployment issues a standard GET /api/memory/threads request and receives a full enumeration of threads belonging to all other users because the missing |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
Cross-user thread enumeration in the Mastra AI framework through version 1.63.0 allows authenticated low-privilege attackers to read conversation histories and metadata belonging to other resource owners via the memory API. The ownership validation in GET /api/memory/threads is silently disabled when the mapUserToResourceId callback is omitted from server configuration, creating a no-op authorization gate (CWE-862). No public exploit code or CISA KEV listing exists, but the CVSS 4.0 score of 7.1 reflects the high confidentiality impact achievable with only a valid authenticated session.
RemediationAI
Administrators should immediately configure the mapUserToResourceId callback in their Mastra server setup to enforce thread ownership scoping - omitting this callback is the direct and sufficient cause of the vulnerability, so adding it constitutes an effective compensating control without requiring a version upgrade. The affected handler logic is visible at https://github.com/mastra-ai/mastra/blob/b7e66f0c478a227985e0062794ef058c3714fabf/packages/server/src/server/handlers/utils.ts. A patched release beyond 1.63.0 should be applied once one is confirmed available; no specific fixed version is independently verified from the current data - monitor https://github.com/mastra-ai/mastra/issues/18911 and the VulnCheck advisory at https://www.vulncheck.com/advisories/mastra-memory-api-thread-ownership-check-is-a-no-op-when-mapusertoresourceid-is-unset for patch confirmation. As an additional defense, restrict access to the memory API endpoints to trusted internal networks only, reducing the exposure window until a patch is applied.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mastra (cpe:2.3:a:mastra-ai:mastra) is an open-source TypeScript AI agent framework providing persistent memory thread storage for multi-user AI applications. The vulnerability resides in packages/server/src/server/handlers/utils.ts, where the thread ownership validation function evaluates the mapUserToResourceId callback to map a caller's identity to a resource namespace. When this callback is omitted from server configuration, the validation function becomes a no-op rather than defaulting to a deny posture, allowing any authenticated caller's thread-list query to return all threads regardless of owner. CWE-862 (Missing Authorization) is the precise root cause: the authorization check is structurally present but functionally absent when the callback is unconfigured.
Know when Mastra gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-accessible API requires a valid authenticated session (PR:L); scope unchanged as impact is confined to reading other users' thread data within the same system; no integrity or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
Mastra AI framework deployments through version 1.63.0 enable any authenticated user to access confidential conversation histories and metadata belonging to other users when authorization controls are not properly configured, creating direct exposure of sensitive business information and user privacy violations. This vulnerability affects all organizations using the framework and requires immediate configuration audit and remediation to prevent unauthorized data disclosure.
No vendor-released patch identified at time of analysis. Enable and properly configure the mapUserToResourceId authorization callback in all Mastra AI instances to enforce ownership validation on memory API endpoints. Implement application-level access controls to restrict GET /api/memory/threads to each authenticated user's own conversation threads. Establish regular audits of memory API access logs to detect unauthorized cross-user access attempts. Monitor Mastra security advisories for patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-67804
GHSA-q48c-g8g8-2xq8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB