CVE-2025-61685
CVE-2025-61685 is a medium-severity vulnerability with a CVSS 3.x base score of 6.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-548.
Key facts
- Severity: Medium (CVSS 3.x base score 6.5)
- EPSS exploit prediction: 1% (42nd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-33192
- Weakness: CWE-548
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-61685?
- 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.
- How severe is CVE-2025-61685?
- CVE-2025-61685 has a CVSS 3.x base score of 6.5, rated medium severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2025-61685 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (42nd percentile), an estimate of the probability of exploitation in the next 30 days.
- How do I fix CVE-2025-61685?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2025-61685 have an EU (EUVD) identifier?
- Yes. CVE-2025-61685 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-33192.
- When was CVE-2025-61685 published?
- CVE-2025-61685 was published on 2025-10-03 and last updated on 2026-06-17.
References
- https://github.com/mastra-ai/mastra/commit/7f2b528ba82db512d68832d2f8ad6cbc8bb46cd4
- https://github.com/mastra-ai/mastra/security/advisories/GHSA-xh92-rqrq-227v
Other CWE-548 vulnerabilities
- CVE-2025-28170 — High (CVSS 7.6): Grandstream Networks GXP1628 <=1.0.4.130 is vulnerable to Incorrect Access Control. The device is configured with…
- CVE-2025-32750 — High (CVSS 7.5): Dell PowerFlex Manager, version(s) <=4.6.2, contain(s) an Exposure of Information Through Directory Listing…
- CVE-2020-36921 — High (CVSS 7.5): RED-V Super Digital Signage System 5.1.1 contains an information disclosure vulnerability that allows unauthenticated…
- CVE-2022-50788 — High (CVSS 7.5): SOUND4 IMPACT/FIRST/PULSE/Eco <=2.x contains an information disclosure vulnerability that allows unauthenticated…
- CVE-2021-47718 — High (CVSS 7.5): OpenBMCS 2.4 contains an information disclosure vulnerability that allows unauthenticated attackers to access sensitive…
- CVE-2024-22082 — High (CVSS 7.5): An issue was discovered in Elspec G5 digital fault recorder versions 1.1.4.15 and before. Unauthenticated directory…