Live threats

All CVEs / mockoon

CVE-2026-59148mockoon

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
—
Auth required
No
Published
Jul 9, 2026
Updated
Jul 10, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-306, CWE-352, CWE-732, CWE-942
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for mockoon.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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

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.