Mockoon
Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 9.7.0
Fixed in 9.7.0
Mitigation
Upgrade mockoon to 9.7.0 or later.
References
- Vendor advisory github.com/mockoon/mockoon/security/advisories…
- Patch github.com/mockoon/mockoon/pull/2254
- Patch github.com/mockoon/mockoon/commit/c420b5a56918…
1 more
- Release notes github.com/mockoon/mockoon/releases/tag/v9.7.0
Timeline
Days relative to CVE publicationFirst public PoC 130 days after publication; not in CISA KEV. First PoC: nuclei template: Mockoon < 9.7.0 - Unauthenticated Admin API (nuclei template, 16 Nov 2026).
PoC repositories
Found on GitHub.No PoC repositories found yet.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Mockoon < 9.7.0 - Unauthenticated Admin API | 16 Nov 2026 | 18 Nov 2026 |