Read the docs
TI-2026-42315 Aliases CVE-2026-59148GHSA-rqx4-3f6q-3x2v

Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft

Priority HIGH 73CWE-306Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Security bypass, Tampering
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-306 and CWE-352.

Summary

Mockoon provides way to design and run mock APIs. Prior to 9.7.0, Mockoon's admin API in commons-server/src/libs/server/admin-api.ts is mounted on the same Express listener as user-defined mock routes, enabled by default in shipped runtimes, serves Access-Control-Allow-Origin: * with write methods allowed, and has no authentication. Any unauthenticated caller who can reach the mock server port can read MOCKOON_* environment variables, write arbitrary process environment variables through /mockoon-admin/env-vars, rewrite mock route bodies, statuses, and headers through PUT /mockoon-admin/environment, read transaction logs and SSE streams, and purge state. 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.00262 18th 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
Total

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-rqx4-3f6q-3x2v
—@mockoon/cli (npm)before 9.7.09.7.0Patch availableGHSA-rqx4-3f6q-3x2v
  • 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-rqx4-3f6q-3x2v
  • @mockoon/cli (npm) Vendor— Affected before 9.7.0 Fixed in 9.7.0 Patch available GHSA-rqx4-3f6q-3x2v

Remediation

  • Fix · CNA mockoon (mockoon) Fixed in 9.7.0
  • Fix · GHSA-rqx4-3f6q-3x2v @mockoon/commons-server (npm) Fixed in 9.7.0 Advisory →
  • Fix · GHSA-rqx4-3f6q-3x2v @mockoon/cli (npm) Fixed in 9.7.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-59148
  2. 2026-10-03 Alias added: GHSA-rqx4-3f6q-3x2v

References

  • TI-2025-36691 Mockoon has a Path Traversal and LFI in the static file serving endpoint CVSS 3.1HIGH 7.5
  • 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