CVE-2026-82273
Received Received - Intake

Authentication Bypass in Mastra via Missing mapUserToResourceId Validation

Vulnerability report for CVE-2026-82273, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-28

Last updated on: 2026-08-28

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-28
Last Modified
2026-08-28
Generated
2026-08-29
AI Q&A
2026-08-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
mastra mastra 1.63.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-862 The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Mastra versions up to 1.63.0 have an authentication bypass flaw in the Memory API. When the mapUserToResourceId callback is not configured, the system fails to validate thread ownership properly. This allows authenticated attackers to bypass access controls and enumerate all threads via the GET /api/memory/threads endpoint. They can then read conversation history and metadata of other users without authorization.

Detection Guidance

Check if the Mastra server is running and accessible. Use curl to test the vulnerable endpoints: curl -X GET http://<server>/api/memory/threads. If the server returns all threads without authentication checks, the vulnerability is present.

Impact Analysis

If you use Mastra with the Memory API and have not configured mapUserToResourceId, attackers with valid credentials could access your private conversations and metadata. They may also see other users' threads, exposing sensitive information like user lists, message histories, and working memory contents. This affects confidentiality of all stored data in the system.

Compliance Impact

This vulnerability likely violates GDPR's data protection principles by enabling unauthorized access to personal data and HIPAA's requirement for access controls to protect health information. It could lead to data breaches, unauthorized disclosure of sensitive information, and failure to maintain proper access controls, resulting in regulatory penalties and loss of compliance certifications.

Mitigation Strategies

Immediately update Mastra to a version where mapUserToResourceId is properly configured or enable Fine-Grained Authorization (FGA). Ensure the mapUserToResourceId callback is set in authentication setup to enforce resource ownership validation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-82273. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart