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.
CVE-2026-59149
This medium-severity CVE scores 6.5 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.3%, top 75% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.5
- EG Score
- 6.5(medium)
- EPSS
- 25.0%
- KEV
- Not listed
Published
July 9, 2026
Last Modified
July 10, 2026
Advisory Details (5)
Auto-updated Jul 9, 2026Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check) · Advisory · mockoon/mockoon · GitHub
https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2Release v9.7.0 (mockoon/mockoon)
Patch available: mockoon/mockoon v9.7.0
https://github.com/mockoon/mockoon/releases/tag/v9.7.0Fix path traversal in file path
Patch available: mockoon/mockoon v9.7.0 (PR #2255 merged 2026-06-18)
https://github.com/mockoon/mockoon/pull/2255commit b42bdfb7f82e (mockoon/mockoon)
Patch available: mockoon/mockoon v9.7.0 (contains commit b42bdfb7f82e)
https://github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Frequently asked(5)
What is CVE-2026-59149?
When was CVE-2026-59149 disclosed?
Is CVE-2026-59149 actively exploited?
What is the CVSS score of CVE-2026-59149?
How do I remediate CVE-2026-59149?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-59149
Is Your Infrastructure Affected by CVE-2026-59149?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.