Exposure of Information Through Directory Listing
CVE-2025-61685
Summary
The @mastra/mcp-docs-server is vulnerable to an information exposure vulnerability due to improper handling of directory traversal in request paths. Although a security check is implemented to prevent path traversal when reading file contents, the protection is bypassed by subsequent logic that attempts to generate directory suggestions. An unauthenticated attacker can exploit this flaw to list the contents of arbitrary directories on the server's file system, potentially exposing sensitive information such as the structure of the user's home directory. This issue affects versions prior to 0.13.21-alpha.0.
- LOW
- NETWORK
- NONE
- UNCHANGED
- NONE
- LOW
- HIGH
- NONE
CWE-548 - Exposure of Information Through Directory Listing
A directory listing is inappropriately exposed, yielding potentially sensitive information to attackers.
References
Advisory Timeline
- Published