Black Friday60% off BLACKFRIDAY2026
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Nov 18, 2026

CVE-2026-59148 Scanner

CVE-2026-59148 Scanner - Unauthorized Admin Access vulnerability in Mockoon

Est. Time~10 seconds
Scan TypeGroup Scan
Targetsdomain, subdomain, ipv4
CostFree
3
Times Used
continuous scan runs
4.4k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
8.8
CVSShigh
Exploitable remotely over the internet · no authentication required · user interaction needed.
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.

Attack Vector
Network
Privileges Req.
None
User Interaction
Required
Affected
mockoonby mockoon
< 9.7.0
Updated Nov 18, 2026View on NVD →
Detail

Mockoon is widely utilized by developers and IT professionals for simulating APIs, enabling easier and faster development and testing of applications. It allows users to create mock environments representing API endpoints and responses in local development settings. Particularly, Mockoon offers flexibility and ease of use with its simple user interface, making it accessible for both small and large teams for testing purposes. As a cross-platform tool, it supports various operating systems, amplifying its adaptability in diverse technological environments. Developers use it to streamline testing processes, allowing for quicker iterations and quality assurance cycles. Its role in providing cost-effective and rapid testing solutions makes it an indispensable tool in many software development workflows.

The vulnerability identified within Mockoon permits unauthorized access to the admin API, particularly concerning versions before 9.7.0. Due to this vulnerability, any user can access the admin endpoints without authentication, leading to potential unauthorized activities. The admin API is exposed on the mock routes listener, which exacerbates security risks as it makes crucial backend functionalities accessible to the public. Malicious actors exploiting this vulnerability can alter and view sensitive settings or responses within the API simulation environment. Consequently, failing to control these access permissions can undermine the integrity and privacy of mock data and processes. As such, it poses a severe threat to any simulation or mock environment reliant on default settings.

The issue specifically arises because prior to version 9.7.0, Mockoon enables the admin API by default without requiring any authentication token. The vulnerable endpoint, '/mockoon-admin', responds to requests without verifying origin or security credentials, leading to an unrestricted access scenario. This default configuration involves potential exposure as the admin API delivers various functionalities that handle transactions and environmental configurations. A malicious entity with access to these endpoints can perform operations that would typically require administrative privileges. This lack of authentication grants undue access to sensitive API management capabilities. Access-Control-Allow-Origin header set to wildcard further compounds the vulnerability by permitting any origin to interface with these APIs.

Exploitation of this vulnerability could lead to numerous dire consequences. An attacker could alter mock API responses, fraudulently manipulate the data being returned to APIs users thus impacting services. It also exposes configuration settings and transaction logs, leading to potential information leaks and unauthorized data manipulation. Malicious endeavor could involve changing global variables which might disrupt intended API behaviors. Manipulation of environmental variables may have cascading effects on dependent services and applications hindering usual operations. These actions not only jeopardize API testing environments but could also mislead developers regarding the actual responses from their APIs under development or testing.

REFERENCES

Solution Advice
  • Upgrade Mockoon to version 9.7.0 or later to ensure administrative APIs require a bearer token for access.
  • Implement strict access controls and authentication mechanisms to protect sensitive endpoints from unauthorized access.
  • Audit configurations regularly to ensure no unintended exposure of APIs or services occurs due to defaults or misconfigurations.
  • Disable the admin API if not required, using the '--disable-admin-api' server start option to prevent unnecessary risk exposure.
  • Regularly monitor vulnerability advisories and apply security patches promptly to mitigate newly discovered vulnerabilities.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

12,000+ scanners. Free to start. No credit card required.