# CVE-2026-59148: Mockoon - Authentication Bypass

> Live exploitation tracking for CVE-2026-59148 by the CrowdSec Live Exploit Tracker, built from real-world attack data crowdsourced from CrowdSec's global network.

Page: https://tracker.crowdsec.net/cves/CVE-2026-59148

## Key facts

- **Exploitation phase:** Limited Exploitation. The vulnerability is known but shows very limited attacker interest or exploitation activity.
- **CVSS score:** 8.8
- **Public exploit available:** Yes
- **Affected products:** Mockoon
- **Weaknesses:** CWE-306 (Missing Authentication for Critical Function); CWE-352 (Cross-Site Request Forgery (CSRF)); CWE-732 (Incorrect Permission Assignment for Critical Resource); CWE-942 (Permissive Cross-domain Security Policy with Untrusted Domains)
- **Tags:** web_application

## 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.

## CrowdSec analysis

[CVE-2026-59148](https://euvd.enisa.europa.eu/vulnerability/CVE-2026-59148) is a high-severity authentication bypass in Mockoon versions before 9.7.0, exposing the unauthenticated admin API on the mock server’s listener. Attackers who can reach the server port may read sensitive environment variables and transaction data, modify process variables and mock API responses, or purge application state, potentially compromising confidentiality, integrity, and availability. Upgrade to Mockoon 9.7.0 or later to address the vulnerability.

CrowdSec has been tracking this vulnerability and its exploits since 18th of November 2026.

CrowdSec has not observed any significant exploitation activity targeting CVE-2026-59148 across its network. As a result, no community-driven trend analysis is available for this vulnerability at this time.

Observed exploitation attempts target `/mockoon-admin` to access Mockoon’s unauthenticated admin API. Requests to this endpoint may indicate attempts to access administrative functionality without a bearer token.

## Timeline

- 2026-07-09: CVE Published. CVE-2026-59148 is published to NVD.
- 2026-11-18: Rule Released. CrowdSec releases a rule to detect CVE-2026-59148 exploitation attempts against the CrowdSec Network.

## 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://mockoon.com/releases/9.7.0
- https://github.com/mockoon/mockoon/security/advisories/GHSA-rqx4-3f6q-3x2v
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59148.yaml

## Live exploitation data

The [Live Exploit Tracker page](https://tracker.crowdsec.net/cves/CVE-2026-59148) follows observed exploitation activity for CVE-2026-59148. [Request an API key](https://tracker.crowdsec.net/request-api-key) for full access to its exploitation timeline, attacking IP addresses and blocklists.
