Skip to main content

Mastra EUVDEUVD-2026-67804

| CVE-2026-82273 HIGH
Missing Authorization (CWE-862)
2026-08-28 VulnCheck GHSA-q48c-g8g8-2xq8
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid low-privilege account credentials
  2. Delivery
    Authenticate to Mastra server
  3. Exploit
    Issue GET /api/memory/threads
  4. Execution
    Bypass no-op ownership check (mapUserToResourceId absent)
  5. Persist
    Enumerate all threads across all resource owners
  6. Impact
    Extract 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 mapUserToResourceId callback, which is the specific omission that disables thread ownership validation. Deployments that implement mapUserToResourceId correctly are not vulnerable regardless of version. Exploitation is bounded to confidentiality - read-only access to thread metadata and conversation history; no write, delete, or service-disruption capability is present. The attack is not limited to a specific platform or OS.

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 mapUserToResourceId are exposed, but VulnCheck's framing of this as a 'no-op' implies the omission may be common. Integrity and availability are unaffected, constraining the blast radius to data disclosure within a single Mastra deployment.

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 mapUserToResourceId configuration disables the ownership filter. The attacker then retrieves conversation histories and metadata from any returned thread ID, gaining access to potentially sensitive AI interaction data across the entire user base. No exploit code or special tooling is required - the vulnerability is exercisable with a standard HTTP client and any valid session token.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mastra 0 ≤1.63.0

Affected Packages

euvd mastra no fix

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

Vendor (VulnCheck) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
Emerging AI agent framework, limited enterprise production footprint.
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy