Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-61685— Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure

Quick assessment

Affected
mastra-ai mastra
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Mastra是mastra-ai开源的一个AI代理框架。 Mastra 0.13.8版本至0.13.20-alpha.0版本存在安全漏洞,该漏洞源于安全检查被绕过,可能导致目录遍历攻击。

CVSS 6.5 · Medium EPSS 0.59% · P48

Possible ATT&CK Techniques 1 AI

T1083 · File and Directory Discovery
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-61685

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure
Source: CVE Program / CVE List V5
Vulnerability Description
Mastra is a Typescript framework for building AI agents and assistants. Versions 0.13.8 through 0.13.20-alpha.0 are vulnerable to a Directory Traversal attack that results in the disclosure of directory listings. The code contains a security check to prevent path traversal for reading file contents, but this check is effectively bypassed by subsequent logic that attempts to find directory suggestions. An attacker can leverage this flaw to list the contents of arbitrary directories on the user's filesystem, including the user's home directory, exposing sensitive information about the file system's structure. This issue is fixed in version 0.13.20.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
通过目录枚举导致的信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
Mastra 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Mastra是mastra-ai开源的一个AI代理框架。 Mastra 0.13.8版本至0.13.20-alpha.0版本存在安全漏洞,该漏洞源于安全检查被绕过,可能导致目录遍历攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
mastra-ai mastra <= 0.13.8, < 0.13.20 -

II. Public POCs for CVE-2025-61685

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-61685

请登录查看更多情报信息。

Vendor Advisories for CVE-2025-61685 (1)

IV. Related Vulnerabilities