CVE-2026-59149mockoon
Medium 6.5 No auth needed
Follow: this CVE · mockoon · mockoon We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 9, 2026
- Updated
- Jul 10, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for mockoon.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @mockoon/cli |
< 9.7.0 |
9.7.0 |
npm install @mockoon/cli@9.7.0 |
| npm | @mockoon/commons-server |
< 9.7.0 |
9.7.0 |
npm install @mockoon/commons-server@9.7.0 |
Per OSV / GitHub Advisories (GHSA-8wqc-v2q8-vff2). Check the version in your lockfile before upgrading.
Affected products
- mockoon · mockoon
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.