6.5
MEDIUM CVSS 3.1
CVE-2026-59149
Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)
Description

Mockoon provides way to design and run mock APIs. Prior to 9.7.0, a FILE response whose filePath embeds request data is confined by getSafeFilePath in packages/commons-server/src/libs/server/server.ts with resolvedPath.startsWith(staticBaseDir). That prefix test has no path-separator boundary, so a ../-escaped path whose absolute form string-prefixes the base directory passes, allowing an unauthenticated client to read files from sibling paths outside the served directory through HTTP sendFile, WebSocket, or callbacks. This issue is fixed in version 9.7.0.

INFO

Published Date :

July 9, 2026, 7:17 p.m.

Last Modified :

July 9, 2026, 7:17 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-59149 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 MEDIUM [email protected]
Solution
Update Mockoon to version 9.7.0 or later to fix path traversal vulnerability.
  • Update Mockoon to version 9.7.0.
  • Verify static directory configuration.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-59149 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-59149 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-59149 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Jul. 09, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'mockoon', 'product': 'mockoon', 'versions': [{'status': 'affected', 'version': '< 9.7.0'}]}]
    Added Description Mockoon provides way to design and run mock APIs. Prior to 9.7.0, a FILE response whose filePath embeds request data is confined by getSafeFilePath in packages/commons-server/src/libs/server/server.ts with resolvedPath.startsWith(staticBaseDir). That prefix test has no path-separator boundary, so a ../-escaped path whose absolute form string-prefixes the base directory passes, allowing an unauthenticated client to read files from sibling paths outside the served directory through HTTP sendFile, WebSocket, or callbacks. This issue is fixed in version 9.7.0.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
    Added CWE CWE-22
    Added CWE CWE-23
    Added Reference https://github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585
    Added Reference https://github.com/mockoon/mockoon/pull/2255
    Added Reference https://github.com/mockoon/mockoon/releases/tag/v9.7.0
    Added Reference https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2
    Added Reference https://mockoon.com/releases/9.7.0
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 09, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2
    Added SSVC {'id': 'CVE-2026-59149', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-07-09T18:39:47.514756Z'}
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.