CVE-2026-59148
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-07-09
- Last modified
- 2026-07-10
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.2 %
higher than 7 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| mockoon | mockoon | < 9.7.0 | Affected |
Weakness type
-
CWE-306: Missing Authentication for Critical Functionality
The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
-
CWE-352: Cross-Site Request Forgery
The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.
-
CWE-732: Incorrect Permission Assignment for Critical Resource
The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.
-
CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains
The product uses a web-client protection mechanism such as a Content Security Policy (CSP) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1083: File and Directory Discovery
- T1134.001: Token Impersonation/Theft
- T1505.005: Terminal Services DLL
- T1548: Abuse Elevation Control Mechanism
- T1550.004: Web Session Cookie
- T1553.002: Code Signing
- T1554: Compromise Host Software Binary
- T1574.005: Executable Installer File Permissions Weakness
- T1574.010: Services File Permissions Weakness
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
- https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.