{"cve":"CVE-2026-59148","nvd":{"published":"2026-07-09T19:17:07.067","modified":"2026-07-10T19:15:15.780","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-306","CWE-352","CWE-732","CWE-942"],"references":["https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299","https://github.com/mockoon/mockoon/pull/2254","https://github.com/mockoon/mockoon/releases/tag/v9.7.0","https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v","https://mockoon.com/releases/9.7.0"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:44:02.134301115+00:00"},"epss":{"cve":"CVE-2026-59148","score":0.00262,"percentile":0.18103,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rqx4-3f6q-3x2v","url":"https://osv.dev/vulnerability/GHSA-rqx4-3f6q-3x2v","summary":"@Mockoon/commons-server: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft","modified":"2026-09-11T22:15:03.990881628Z","packages":[{"ecosystem":"npm","name":"@mockoon/commons-server","purl":"pkg:npm/%40mockoon/commons-server","ranges":["<9.7.0"],"fixed":["9.7.0"]},{"ecosystem":"npm","name":"@mockoon/cli","purl":"pkg:npm/%40mockoon/cli","ranges":["<9.7.0"],"fixed":["9.7.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}