Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| mockoon | mockoon | before 9.7.0 | 9.7.0 | Patch available | CNA |
| — | @mockoon/commons-server (npm) | before 9.7.0 | 9.7.0 | Patch available | GHSA-rqx4-3f6q-3x2v |
| — | @mockoon/cli (npm) | before 9.7.0 | 9.7.0 | Patch available | GHSA-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
- 2026-10-02 Threatist record created from CVE-2026-59148
- 2026-10-03 Alias added: GHSA-rqx4-3f6q-3x2v
References
Other 6
- https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v
- https://github.com/mockoon/mockoon/pull/2254
- https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299
- https://github.com/mockoon/mockoon/releases/tag/v9.7.0
- https://mockoon.com/releases/9.7.0
- https://github.com/mockoon/mockoon
More mockoon vulnerabilities
- 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
- CVE-2026-59148 · CVE Program
- CVE-2026-59148 · NVD
- FIRST EPSS
- GHSA-rqx4-3f6q-3x2v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences