Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft
Summary
| CVE | CVE-2026-59148 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-09 19:17:07 UTC |
| Updated | 2026-07-09 20:16:30 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 8.8 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Problem Types: CWE-306 | CWE-352 | CWE-732 | CWE-942 | CWE-306 CWE-306: Missing Authentication for Critical Function | CWE-352 CWE-352: Cross-Site Request Forgery (CSRF) | CWE-732 CWE-732: Incorrect Permission Assignment for Critical Resource | CWE-942 CWE-942: Permissive Cross-domain Policy with Untrusted Domains
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/mockoon/mockoon/releases/tag/v9.7.0 | [email protected] | github.com | |
| github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | github.com | |
| github.com/mockoon/mockoon/pull/2254 | [email protected] | github.com | |
| mockoon.com/releases/9.7.0 | [email protected] | mockoon.com | |
| github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.