CVE-2025-61685
published medium CVSS 3.1 · 6.5Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mastra-ai | — | mastra<= 0.13.8, < 0.13.20 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mastra-ai | mastra | <= 0.13.8, < 0.13.20 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-548 CWE-548: Exposure of Information Through Directory Listing
References
2Provider assertions
2GitHub_M · cna
Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 414213bab40c11771a7f595ff744d40e04bed259dfcf0814d40119f6c041efa3
- Ingested
- 23 Sep 2026, 08:55:13 UTC
- Source record
- Official CVE record