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.
Published: 2026-08-28
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Mastra versions up to 1.63.0 perform an authentication bypass in the memory API thread ownership validation when the mapUserToResourceId callback is omitted from the configuration. The ownership check is effectively a no‑op in this scenario, allowing an authenticated user to list and read any thread owned by other users. This capability can expose conversation history and metadata belonging to different resource owners, potentially leaking confidential business or personal information.

Affected Systems

The affected product is Mastra AI’s Mastra platform. Any deployment of Mastra version 1.63.0 or earlier where mapUserToResourceId is not set in the configuration is vulnerable. Versions newer than 1.63.0 are presumed not to exhibit this flaw.

Risk and Exploitability

The vulnerability scores a 7.1 CVSS, indicating significant impact and a high likelihood of exploitation if an attacker can authenticate. The EPSS score is not available, so the current exploitation probability cannot be quantified, but the flaw is present in a production API used by authenticated users, making exploitation feasible. The vulnerability is not listed in the CISA KEV catalog. Authenticated attackers can enumerate all threads via GET /api/memory/threads and read data that should be restricted to the owning resource. The attack vector is likely through legitimate API calls, requiring valid credentials but not elevated privileges beyond those normally granted to a logged‑in user.

Generated by OpenCVE AI on August 28, 2026 at 22:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Mastra version newer than 1.63.0 where the thread ownership check is enforced.
  • Configure the mapUserToResourceId callback in Mastra’s configuration to ensure per‑resource ownership validation is active.
  • Restrict API access so that only authorized roles can list or read threads, and consider adding rate limiting or additional audit logging for thread enumeration requests.

Generated by OpenCVE AI on August 28, 2026 at 22:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 28 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Mastra-ai
Mastra-ai mastra
Vendors & Products Mastra-ai
Mastra-ai mastra

Fri, 28 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
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.
Title Mastra Memory API Thread Ownership Check Is a No-op When mapUserToResourceId Is Unset
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, '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'}


Subscriptions

Mastra-ai Mastra
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-28T20:25:25.139Z

Reserved: 2026-08-28T11:12:39.515Z

Link: CVE-2026-82273

cve-icon Vulnrichment

Updated: 2026-08-28T20:25:20.730Z

cve-icon NVD

Status : Received

Published: 2026-08-28T20:20:18.227

Modified: 2026-08-28T22:16:56.020

Link: CVE-2026-82273

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T22:15:04Z

Weaknesses