S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Oct 8, 2025

CVE-2025-59049 Scanner

CVE-2025-59049 Scanner - Path Traversal vulnerability in Mockoon

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
3k
Times Used
continuous scan runs
6k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2025-59049
7.5
CVSShigh
Exploitable remotely over the internet · no authentication required.

Mockoon provides way to design and run mock APIs. Prior to version 9.2.0, a mock API configuration for static file serving follows the same approach presented in the documentation page, where the server filename is generated via templating features from user input is vulnerable to Path Traversal and LFI, allowing an attacker to get any file in the mock server filesystem. The issue may be particularly relevant in cloud hosted server instances. Version 9.2.0 fixes the issue.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
mockoonby mockoon
< 9.2.0
Updated Sep 9, 2026View on NVD →
Detail

Mockoon is an application used for creating mock APIs. It is utilized by developers and testers to simulate server behavior in local development environments and supports various API specifications to aid in testing and prototyping. The application is widely used across development teams for its ability to create realistic mock servers to test API interactions. It allows users to customize responses, headers, and simulate different server states to test how applications interact with these APIs. The ease of setting up servers with Mockoon makes it a popular choice for development teams looking to simulate complex API scenarios without the need for cloud or remote server configurations. Its user-friendly interface and functionality support improved productivity in API development workflows.

The vulnerability in Mockoon allows for path traversal attacks, a situation where external inputs can manipulate file names to traverse directories on the server. This issue arises from the unsafe templating of server filenames, which can be exploited by attackers to read arbitrary files on the server's filesystem. Since the application takes user input without sufficient sanitization, an attacker can craft requests to access restricted files. This vulnerability poses a severe risk as it could lead to unauthorized access to sensitive server files. Mitigating such vulnerabilities is crucial to ensure the confidentiality and integrity of the application data and server.

The vulnerability is exploitable due to inadequate validation of user input in file paths, allowing access to directories and files outside the intended scope. It involves using path traversal sequences like `..%2f..%2f` to traverse directories. This vulnerability specifically affects the parts of the application that process user inputs in file paths without sanitizing or validating them properly, thus exposing the server filesystem to potential unauthorized access. Exploitation requires the attacker to craft malicious requests targeting the vulnerable endpoints in Mockoon, which then allows them to retrieve files from the server's filesystem.

If successfully exploited, this vulnerability can result in unauthorized exposure of file contents on the server, potentially leading to the leakage of sensitive information like system configurations, encrypted passwords, or user data. Attackers could use these files to gain further access to server resources or launch additional attacks on the system. Additionally, this can compromise the security of the development environment and any test data stored on the mock server, potentially affecting the integrity and confidentiality of applications relying on Mockoon for testing.

REFERENCES

Solution Advice
  • Update Mockoon to version 9.2.0 or later to patch the vulnerability.
  • Ensure input validation is implemented in API endpoints to sanitize file path inputs.
  • Use web application firewalls to block path traversal attempts.
  • Conduct regular security audits to identify and remediate such vulnerabilities early.
  • Restrict file permissions so only necessary files can be accessed by the application.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

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

CVE-2025-59049 Scanner - Path Traversal vulnerability in Mockoon | S4E