CVE-2026-59148
published high CVSS 3.1 · 8.8Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mockoon | — | mockoon< 9.7.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mockoon | mockoon | < 9.7.0 (affected) | GitHub_M · cna |
Weaknesses
4- 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
References
5Provider assertions
2GitHub_M · cna
Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4986840e93b1f58301ae96e510efd3ae7297f4d0b968cdffd4a0e14afb627a36
- Ingested
- 23 Sep 2026, 09:22:29 UTC
- Source record
- Official CVE record