CVE-2026-59149

MEDIUM CVSS 3.1: 6.5 EPSS 0.48%
Updated Jul 10, 2026
Mockoon
Parameter Value
CVSS 6.5 (MEDIUM)
Fixed In 9.7.0
Type CWE-23 (Relative Path Traversal), CWE-22 (Path Traversal)
Vendor Mockoon
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v3.1