{"cve":"CVE-2025-61685","nvd":{"published":"2025-10-03T23:15:29.870","modified":"2026-10-19T16:10:00.260","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-548"],"references":["https://github.com/mastra-ai/mastra/commit/7f2b528ba82db512d68832d2f8ad6cbc8bb46cd4","https://github.com/mastra-ai/mastra/security/advisories/GHSA-xh92-rqrq-227v"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:11:26.888974865+00:00"},"epss":{"cve":"CVE-2025-61685","score":0.00594,"percentile":0.48082,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-xh92-rqrq-227v","url":"https://osv.dev/vulnerability/GHSA-xh92-rqrq-227v","summary":"Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure","modified":"2025-10-13T15:10:27Z","packages":[{"ecosystem":"npm","name":"@mastra/mcp-docs-server","purl":"pkg:npm/%40mastra/mcp-docs-server","ranges":["<0.17.0"],"fixed":["0.17.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}