Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade @mastra/mcp-docs-server to version 0.13.20 or higher.
@mastra/mcp-docs-server is a MCP server for accessing Mastra.ai documentation, changelogs, and news.
Affected versions of this package are vulnerable to Exposure of Information Through Directory Listing via the execute function. An attacker can access sensitive directory listings by supplying crafted traversal paths, which are not properly validated after an initial security check fails. This can be exploited by submitting malicious input that causes the process to reveal the contents of arbitrary directories on the file system.
1. Configure Cursor IDE: In the .cursor/mcp.json file, define the Mastra MCP server:
{
"mcpServers": {
"mastra": {
"command": "npx",
"args": ["-y", "@mastra/mcp-docs-server"]
}
}
}
2. Enable the MCP server within the IDE.
3. Initiate a new chat and use the malicious prompt provided above.
4. Observe the output, which will contain the directory listing from the root of the user's home directory.