# CVE-2026-59148: Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 60% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-09T18:27:18.579Z
- Modified: 2026-09-11T22:15:03.990Z
- Also known as: GHSA-rqx4-3f6q-3x2v
- Weaknesses: CWE-306, CWE-352, CWE-732, CWE-942
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- mockoon mockoon: < 9.7.0
- @mockoon/commons-server (npm): before 9.7.0
- @mockoon/cli (npm): before 9.7.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v> (exploit, web)
- <https://github.com/mockoon/mockoon/pull/2254> (web)
- <https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299> (web)
- <https://github.com/mockoon/mockoon/releases/tag/v9.7.0> (web)
- <https://mockoon.com/releases/9.7.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59148> (advisory)
- <https://github.com/mockoon/mockoon> (package)

## Sources

- CVE List: [CVE-2026-59148](https://www.cve.org/CVERecord?id=CVE-2026-59148), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-rqx4-3f6q-3x2v](https://github.com/advisories/GHSA-rqx4-3f6q-3x2v), CC-BY-4.0, modified 2026-09-11
- NVD: [CVE-2026-59148](https://nvd.nist.gov/vuln/detail/CVE-2026-59148), Public domain, modified 2026-07-10

---

Page: https://cve.day/CVE-2026-59148 · Whole record: https://cve.day/CVE-2026-59148.json · Rebuilt by cve.day 2026-11-25T22:59:27.546Z
