CVEBrief

Home / mastra-ai / mastra / CVE-2025-61685

CVE-2025-61685: is it exploited, and which versions of mastra-ai mastra are affected and fixed?

CVE-2025-61685 is an exposure of Information Through Directory Listing vulnerability in mastra-ai mastra. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: @mastra/mcp-docs-server before 0.17.0 (GitHub advisory GHSA-xh92-rqrq-227v). Fixed in 0.17.0 (GitHub advisory GHSA-xh92-rqrq-227v). Severity: Medium (6.5, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:16 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:08 UTC
Affected
@mastra/mcp-docs-server before 0.17.0
GitHub advisory GHSA-xh92-rqrq-227v
Fixed in
0.17.0
GitHub advisory GHSA-xh92-rqrq-227v
Severity
Medium 6.5
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
0.59% in 30 days
higher than 50% of CVEs; FIRST, December 2, 2026

What is CVE-2025-61685?

Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure

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.

From the CVE record by GitHub_M, last updated October 6, 2025, 15:52 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
mastra-aimastra<= 0.13.8, < 0.13.20

As the CVE record by GitHub_M states it, last updated October 6, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
npm@mastra/mcp-docs-server< 0.17.00.17.0GHSA-xh92-rqrq-227v

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 13, 2025. Summary: Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure.

How severe is CVE-2025-61685?

ScoreVersionVectorSource
Medium 6.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NGitHub_M

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2025-61685 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, October 6, 2025)
EPSS
0.59% probability of exploitation activity in the next 30 days, percentile 49.8 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
September 29, 2025
Published
October 3, 2025, 22:37 UTC
CVE record updated
October 6, 2025, 15:52 UTC by GitHub_M
NVD
Deferred, last modified October 19, 2026, 16:10 UTC
Last checked
CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:16 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect mastra?

Every CVE in mastra

Questions about CVE-2025-61685

Is CVE-2025-61685 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.59% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of mastra-ai mastra are affected by CVE-2025-61685?

@mastra/mcp-docs-server before 0.17.0, per the GitHub advisory GHSA-xh92-rqrq-227v. The tables above give every range the sources list.

Which version fixes CVE-2025-61685?

0.17.0, per the GitHub advisory GHSA-xh92-rqrq-227v. Check the vendor's advisory before you rely on it.

How severe is CVE-2025-61685?

Medium (6.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2025-61685?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.