Intel

AIKIDO-2026-838845

@mastra/server is vulnerable to Missing Authorization

Missing AuthorizationCVE-2026-82273 Published 2 days ago

71

High Risk

This Affects:

JS@mastra/server
1.1.0 - 1.63.0
Fixed in 1.63.1
Are you affected? Scan for Free

TL;DR

The @mastra/server memory API skips the thread ownership check when the server uses authentication without a mapUserToResourceId callback. The resource id then uses a caller supplied value and can be undefined, so storage returns every thread. An authenticated caller can list all threads and read conversation history, messages, and working memory belonging to other resource owners. The fix applies resource scoped access and rejects authenticated requests that cannot be resolved to a resource id.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you configure server authentication without a mapUserToResourceId callback.

Background info

@mastra/server is vulnerable to Missing Authorization in versions 1.1.0 - 1.63.0.

How to fix this

Upgrade the @mastra/server library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform