{"id":"EUVD-2025-33192","enisaUuid":"eae76157-a050-36f9-98f9-1a5d875b6dc9","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\u0027s filesystem, including the user\u0027s home directory, exposing sensitive information about the file system\u0027s structure. This issue is fixed in version 0.13.20.","datePublished":"Oct 3, 2025, 10:37:09 PM","dateUpdated":"Oct 6, 2025, 3:52:03 PM","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","references":"https://github.com/mastra-ai/mastra/security/advisories/GHSA-xh92-rqrq-227v\nhttps://github.com/mastra-ai/mastra/commit/7f2b528ba82db512d68832d2f8ad6cbc8bb46cd4\n","aliases":"CVE-2025-61685\nGHSA-xh92-rqrq-227v\n","assigner":"GitHub_M","epss":0.59,"enisaIdProduct":[{"id":"f3d77703-d00a-3ea6-a78b-431c2787bee6","product":{"name":"mastra","vendor":{"name":"mastra-ai"}},"product_version":"≤ 0.13.8, \u003c 0.13.20"}],"enisaIdVendor":[{"id":"75e0d197-88c5-3af6-a2c0-cf610a035ee8","vendor":{"name":"mastra-ai"}}],"enisaIdVulnerability":[{"id":"cbcb7141-d83d-3b02-92ac-73390b392ce5","vulnerability":{"id":"CVE-2025-61685","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\u0027s filesystem, including the user\u0027s home directory, exposing sensitive information about the file system\u0027s structure. This issue is fixed in version 0.13.20.","datePublished":"Oct 3, 2025, 10:37:09 PM","dateUpdated":"Oct 6, 2025, 3:52:03 PM","status":"PUBLISHED","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","references":"https://github.com/mastra-ai/mastra/security/advisories/GHSA-xh92-rqrq-227v\nhttps://github.com/mastra-ai/mastra/commit/7f2b528ba82db512d68832d2f8ad6cbc8bb46cd4\n","enisa_id":"EUVD-2025-33192\n","assigner":"GitHub_M","epss":0.59,"dataProcessed":"Nov 4, 2026, 7:18:59 AM","vulnerabilityProduct":[{"id":"4e1821e7-3ce7-353b-8352-a40cf43a0522","product":{"name":"mastra","vendor":{"name":"mastra-ai"}},"product_version":"≤ 0.13.8, \u003c 0.13.20"}],"vulnerabilityVendor":[{"id":"c7454626-946c-3dd2-a564-0a039ab4ff78","vendor":{"name":"mastra-ai"}}]}},{"id":"ed55ab3d-ae50-3b98-b00c-83567b709cab","vulnerability":{"id":"GHSA-xh92-rqrq-227v","description":"Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure","datePublished":"Sep 24, 2025, 8:05:15 PM","dateUpdated":"Oct 13, 2025, 3:10:27 PM","baseScore":0.0,"references":"https://github.com/mastra-ai/mastra/security/advisories/GHSA-xh92-rqrq-227v\nhttps://nvd.nist.gov/vuln/detail/CVE-2025-61685\nhttps://github.com/mastra-ai/mastra/commit/7f2b528ba82db512d68832d2f8ad6cbc8bb46cd4\nhttps://github.com/mastra-ai/mastra\n","enisa_id":"EUVD-2025-33192\n","aliases":"CVE-2025-61685\nGHSA-xh92-rqrq-227v\n","epss":0.0,"dataProcessed":"Nov 1, 2026, 1:55:38 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}