Read the docs
TI-2026-42316 Aliases CVE-2026-59149GHSA-8wqc-v2q8-vff2

Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)

Priority MEDIUM 62CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00483 41st percentileScored 2026-11-07
Fix Fixed mockoon (mockoon): 9.7.0@mockoon/commons-server (npm): 9.7.0+1 more product

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
mockoonmockoonbefore 9.7.09.7.0Patch availableCNA
—@mockoon/commons-server (npm)before 9.7.09.7.0Patch availableGHSA-8wqc-v2q8-vff2
—@mockoon/cli (npm)before 9.7.09.7.0Patch availableGHSA-8wqc-v2q8-vff2
  • mockoon Vendormockoon Affected before 9.7.0 Fixed in 9.7.0 Patch available CNA
  • @mockoon/commons-server (npm) Vendor— Affected before 9.7.0 Fixed in 9.7.0 Patch available GHSA-8wqc-v2q8-vff2
  • @mockoon/cli (npm) Vendor— Affected before 9.7.0 Fixed in 9.7.0 Patch available GHSA-8wqc-v2q8-vff2

Remediation

  • Fix · CNA mockoon (mockoon) Fixed in 9.7.0
  • Fix · GHSA-8wqc-v2q8-vff2 @mockoon/commons-server (npm) Fixed in 9.7.0 Advisory →
  • Fix · GHSA-8wqc-v2q8-vff2 @mockoon/cli (npm) Fixed in 9.7.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-59149
  2. 2026-10-03 Alias added: GHSA-8wqc-v2q8-vff2

References

  • TI-2026-42315 Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft CVSS 3.1HIGH 8.8
  • TI-2025-36691 Mockoon has a Path Traversal and LFI in the static file serving endpoint CVSS 3.1HIGH 7.5

Sources