{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-59148","id":"CVE-2026-59148","title":"Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft","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","descriptionLong":"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.","published":"2026-07-09T18:27:18.579Z","updated":"2026-10-28T02:30:29.226057892Z","reserved":"2026-07-02T16:50:27.886Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["mockoon"],"affectedProducts":[{"vendor":"mockoon","product":"mockoon","defaultStatus":null,"versions":[{"version":"< 9.7.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@mockoon/commons-server","purl":"pkg:npm/%40mockoon/commons-server","ranges":["<9.7.0"],"fixed":["9.7.0"],"advisory":"GHSA-rqx4-3f6q-3x2v"},{"ecosystem":"npm","name":"@mockoon/cli","purl":"pkg:npm/%40mockoon/cli","ranges":["<9.7.0"],"fixed":["9.7.0"],"advisory":"GHSA-rqx4-3f6q-3x2v"}],"cwes":["CWE-306","CWE-352","CWE-732","CWE-942"],"aliases":["GHSA-rqx4-3f6q-3x2v"],"references":[{"url":"https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/mockoon/mockoon/pull/2254","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/mockoon/mockoon/releases/tag/v9.7.0","tags":["x_refsource_MISC","web"]},{"url":"https://mockoon.com/releases/9.7.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59148.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59148","tags":["advisory"]},{"url":"https://github.com/mockoon/mockoon","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00944,"epssPercentile":0.61802,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-59148","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59148","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-59148","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rqx4-3f6q-3x2v","ok":true,"note":"GHSA-rqx4-3f6q-3x2v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-59148","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}