CVE-2025-61685
MEDIUM 6.5CVSS 3.1Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure
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.
- Published
- 3 Oct 2025
- Last modified
- 19 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-548
- Also known as
- GHSA-xh92-rqrq-227v
- Sources
- NVDJSONOSV GHSA-xh92-rqrq-227vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @mastra/mcp-docs-server | < 0.17.0 | 0.17.0 |
References
- https://github.com/mastra-ai/mastra/commit/7f2b528ba82db512d68832d2f8ad6cbc8bb46cd4 · WEB
- https://github.com/mastra-ai/mastra/security/advisories/GHSA-xh92-rqrq-227v · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-61685 · ADVISORY
- https://github.com/mastra-ai/mastra · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 3 Oct 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Sep 2025)