PT-2026-56907 · Mockoon · Mockoon
CVE-2026-59149
·
Published
2026-07-09
·
Updated
2026-09-11
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Mockoon versions prior to 9.7.0
Description
An issue exists in the way FILE responses handle
filePath when embedding request data. The getSafeFilePath function in packages/commons-server/src/libs/server/server.ts uses a prefix test resolvedPath.startsWith(staticBaseDir) that lacks a path-separator boundary. This allows an unauthenticated client to use ../ sequences to escape the intended directory and read files from sibling paths via HTTP sendFile, WebSocket, or callbacks.Recommendations
Update to version 9.7.0.
Exploit
Fix
Path traversal
Relative Path Traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Mockoon