Read the docs
TI-2025-36691 Aliases CVE-2025-59049GHSA-w7f9-wqc4-3wxr

Mockoon has a Path Traversal and LFI in the static file serving endpoint

Priority HIGH 72CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
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 version 9.2.0, a mock API configuration for static file serving follows the same approach presented in the documentation page, where the server filename is generated via templating features from user input is vulnerable to Path Traversal and LFI, allowing an attacker to get any file in the mock server filesystem. The issue may be particularly relevant in cloud hosted server instances. Version 9.2.0 fixes the issue.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01764 78th percentileScored 2026-11-07
Fix Fixed mockoon (mockoon): 9.2.0@mockoon/commons-server (npm): 9.2.0+1 more product

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
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.2.09.2.0Patch availableCNA
—@mockoon/commons-server (npm)before 9.2.09.2.0Patch availableGHSA-w7f9-wqc4-3wxr
—@mockoon/cli (npm)before 9.2.09.2.0Patch availableGHSA-w7f9-wqc4-3wxr
  • mockoon Vendormockoon Affected before 9.2.0 Fixed in 9.2.0 Patch available CNA
  • @mockoon/commons-server (npm) Vendor— Affected before 9.2.0 Fixed in 9.2.0 Patch available GHSA-w7f9-wqc4-3wxr
  • @mockoon/cli (npm) Vendor— Affected before 9.2.0 Fixed in 9.2.0 Patch available GHSA-w7f9-wqc4-3wxr

Remediation

  • Fix · CNA mockoon (mockoon) Fixed in 9.2.0
  • Fix · GHSA-w7f9-wqc4-3wxr @mockoon/commons-server (npm) Fixed in 9.2.0 Advisory →
  • Fix · GHSA-w7f9-wqc4-3wxr @mockoon/cli (npm) Fixed in 9.2.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-59049
  2. 2026-10-03 Alias added: GHSA-w7f9-wqc4-3wxr

References

  • TI-2026-42315 Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft CVSS 3.1HIGH 8.8
  • TI-2026-42316 Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check) CVSS 3.1MEDIUM 6.5

Sources