CVE-2025-61685
Full vulnerability record from the local CVENow database.
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.
Severity
MEDIUM
CVSS score
6.5
(v3.1)
Vulnerability status
Deferred
Source identifier
Published
2025-10-03 23:15:29.870000
Last modified
2026-10-19 16:10:00.260000
View original CVE JSON
{
"id": "CVE-2025-61685",
"sourceIdentifier": "[email protected]",
"published": "2025-10-03T23:15:29.870",
"lastModified": "2026-10-19T16:10:00.260",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Mastra es un framework de Typescript para construir agentes y asistentes de IA. Las versiones 0.13.8 hasta 0.13.20-alpha.0 son vulnerables a un ataque de salto de directorio que resulta en la divulgación de listados de directorios. El código contiene una verificación de seguridad para prevenir el salto de ruta para la lectura de contenidos de archivos, pero esta verificación es efectivamente eludida por lógica subsiguiente que intenta encontrar sugerencias de directorio. Un atacante puede aprovechar esta falla para listar los contenidos de directorios arbitrarios en el sistema de archivos del usuario, incluyendo el directorio de inicio del usuario, exponiendo información sensible sobre la estructura del sistema de archivos. Este problema está corregido en la versión 0.13.20."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "mastra-ai",
"product": "mastra",
"versions": [
{
"version": "<= 0.13.8, < 0.13.20",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.8,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2025-10-06T15:51:52.343087Z",
"id": "CVE-2025-61685",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-548"
}
]
}
],
"references": [
{
"url": "https://github.com/mastra-ai/mastra/commit/7f2b528ba82db512d68832d2f8ad6cbc8bb46cd4",
"source": "[email protected]"
},
{
"url": "https://github.com/mastra-ai/mastra/security/advisories/GHSA-xh92-rqrq-227v",
"source": "[email protected]"
}
]
}