CVE-2026-59148: Unauthenticated Administrative API and CORS Misconfiguration in Mockoon
Vulnerability ID: CVE-2026-59148
CVSS Score: 8.8
Published: 2026-09-11
An in-depth analysis of CVE-2026-59148, a high-severity flaw in Mockoon where unauthenticated administrative endpoints and a wildcard Cross-Origin Resource Sharing (CORS) policy allow remote execution, state poisoning, and credential theft.
TL;DR
Unauthenticated endpoints and wildcard CORS in Mockoon allow local and remote attackers to compromise administrative APIs and hijack local server instances.
⚠️ Exploit Status: POC
Technical Details
- CWE ID: CWE-306, CWE-942, CWE-732, CWE-352
- Attack Vector: Network (AV:N)
- CVSS Score: 8.8 (High)
- EPSS Score: 0.00262 (0.26% probability)
- Impact: Remote Code Execution / Environment Pollution / Credential Exfiltration
- Exploit Status: Proof of Concept
- KEV Status: Not Listed
Affected Systems
- Mockoon Desktop Client
- Mockoon CLI
- Mockoon Serverless
- @mockoon/commons-server
-
Mockoon: < 9.7.0 (Fixed in:
9.7.0)
Exploit Details
- GitHub Security Advisory: Official advisory describing the vulnerability and exploit details.
Mitigation Strategies
- Upgrade Mockoon components to version 9.7.0 or above
- Disable the administrative API using application flags
- Restrict socket binding to localhost (127.0.0.1)
- Use firewalls to block remote inbound connections to mock ports
Remediation Steps:
- Identify all active instances of Mockoon CLI, GUI, and Serverless libraries.
- Execute update commands to pull version 9.7.0 or newer.
- Set the MOCKOON_ADMIN_API_TOKEN environment variable to a strong, random value.
- Ensure the --disable-admin-api flag is configured for CLI execution where the administration plane is not needed.
- Verify localhost-only binding in environment configurations.
References
- GHSA-rqx4-3f6q-3x2v
- Security Patch Commit
- Security Patch Pull Request
- Release v9.7.0
- Mockoon Official Release Notes
Read the full report for CVE-2026-59148 on our website for more details including interactive diagrams and full exploit analysis.
Top comments (0)