{"id":"CVE-2026-59148","summary":"Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft","details":"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.","aliases":["GHSA-rqx4-3f6q-3x2v"],"modified":"2026-07-15T01:49:14.704603175Z","published":"2026-07-09T18:27:18.579Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59148.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-306","CWE-352","CWE-732","CWE-942"]},"references":[{"type":"WEB","url":"https://github.com/mockoon/mockoon/releases/tag/v9.7.0"},{"type":"WEB","url":"https://mockoon.com/releases/9.7.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59148.json"},{"type":"ADVISORY","url":"https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59148"},{"type":"FIX","url":"https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299"},{"type":"FIX","url":"https://github.com/mockoon/mockoon/pull/2254"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mockoon/mockoon","events":[{"introduced":"0"},{"fixed":"c420b5a56918475b8663977b51e5f986e45b3299"},{"fixed":"51eaa94c8d83b9af99b64da10f2b5c383acd8a4c"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"9.7.0"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v9.7.0","libs-v9.7.0","v9.6.1","libs-v9.6.1","v9.6.0","libs-v9.6.0","v9.5.0","libs-v9.5.0","v9.4.0","libs-v9.4.0","cloud-v9.3.2","cloud-v9.3.1","v9.3.0","libs-v9.3.0","v9.2.0","libs-v9.2.0","v9.1.0","libs-v9.1.0","v9.0.0","libs-v9.0.0","v8.4.0","libs-v8.4.0","v8.3.0","libs-v8.3.0","v8.2.0","libs-v8.2.0","v8.1.1","libs-v8.1.1","v8.1.0","libs-v8.1.0","v8.0.0","libs-v8.0.0","v7.0.0","libs-v7.0.0","v6.2.0","libs-v6.2.0","v6.1.0","libs-v6.1.0","v6.0.1","libs-v6.0.1","v6.0.0","libs-v6.0.0","v5.1.0","libs-v5.1.0","v5.0.0","libs-v5.0.0","v4.1.0","libs-v4.1.0","v4.0.0","libs-v4.0.0","v3.1.0","libs-v3.1.0","v3.0.0","libs-v3.0.0","v1.23.0","libs-v2023-03","libs-v2023-01","v1.22.0","v1.21.1","cli-v2.2.1","v1.21.0","cli-v2.2.0","v1.20.0","cli-v2.1.0","v1.19.0","cli-v2.0.0","cli-v1.6.2","cli-v1.6.1","v1.18.1","v1.18.0","v1.17.0","v1.16.0","v1.15.0","v1.14.1","v1.14.0","v1.13.0","v1.12.0","v1.11.0","v1.10.0","v1.9.0","v1.8.0","v1.7.0","v1.6.0","v1.5.1","v1.5.0","v1.4.0","v1.3.0","v1.2.0","v1.1.0","v1.0.0","v0.4.0","v0.3.0","v0.2.0","v0.1.1","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59148.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}