{"id":"CVE-2025-61685","published":"2025-10-03T22:37:09Z","modified":"2025-10-06T15:52:03Z","title":"Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure","vendor":"mastra-ai","product":"mastra","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00594,"percentile":0.49318,"provenance":"source"},"cwes":[{"id":"CWE-548","name":"Exposure of Information Through Directory Listing"}],"references":[{"url":"https://github.com/mastra-ai/mastra/security/advisories/GHSA-xh92-rqrq-227v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mastra-ai/mastra/commit/7f2b528ba82db512d68832d2f8ad6cbc8bb46cd4","tags":["x_refsource_MISC"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":9.86},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"mastra-ai","affectedVersions":[{"vendor":"mastra-ai","product":"mastra","versions":["<= 0.13.8, < 0.13.20"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-06T15:51:52.343087Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@mastra/mcp-docs-server","vulnerableRanges":["<0.17.0"],"patched":["0.17.0"],"from":["GHSA-xh92-rqrq-227v"],"provenance":"source"}],"summary":{"text":"The Mastra framework's @mastra/mcp-docs-server component, in versions 0.13.8 through 0.13.20-alpha.0, contains a directory traversal flaw in which a path-validation check meant to block traversal during file reads is bypassed by the logic that generates directory suggestions. An attacker with low-privileged network access to the server, and no user interaction required, can list the contents of arbitrary directories on the host filesystem, including the user's home directory, thereby learning about the filesystem's structure and any sensitive information visible in those listings.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:03Z"},"euvd":{"id":"EUVD-2025-33192","exploited":false,"provenance":"source"}}