CVE-2026-59148mockoon
High 8.8 No auth needed
Follow: this CVE · mockoon · mockoon We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- —
- Auth required
- No
- Published
- Jul 9, 2026
- Updated
- Jul 10, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for mockoon.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @mockoon/cli |
< 9.7.0 |
9.7.0 |
npm install @mockoon/cli@9.7.0 |
| npm | @mockoon/commons-server |
< 9.7.0 |
9.7.0 |
npm install @mockoon/commons-server@9.7.0 |
Per OSV / GitHub Advisories (GHSA-rqx4-3f6q-3x2v). Check the version in your lockfile before upgrading.
Affected products
- mockoon · mockoon
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.