CVE-2026-59148Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft
- 8.8HighCVSS base score
- 0.26%Exploitation in 30 daysEPSS · top 82% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
- https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v (opens in a new tab)x_refsource_CONFIRMexploit
Timeline
ID reserved
By GitHub_M
- 7 days later
· 7 days later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.26% · top 82% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@mockoon/cliGHSA-rqx4-3f6q-3x2v (opens in a new tab)
- npm@mockoon/commons-serverGHSA-rqx4-3f6q-3x2v (opens in a new tab)
References
References5
- https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/mockoon/mockoon/pull/2254 (opens in a new tab)x_refsource_MISC
- https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299 (opens in a new tab)x_refsource_MISC
- https://github.com/mockoon/mockoon/releases/tag/v9.7.0 (opens in a new tab)x_refsource_MISC
- https://mockoon.com/releases/9.7.0 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-42683 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rqx4-3f6q-3x2v (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-59148)Record last updated .