Overview
The vulnerability CVE-2025-59049 is a critical security flaw found in Mockoon, which allows attackers to exploit Path Traversal and Local File Inclusion (LFI) weaknesses. Due to this vulnerability, an attacker can access any file in the mock server filesystem, potentially leading to system compromise or data leakage. This vulnerability is especially concerning for cloud hosted server instances, where sensitive data may be stored.
Vulnerability Summary
CVE ID: CVE-2025-59049
Severity: High, 7.5 (CVSS score)
Attack Vector: Network
Privileges Required: None
User Interaction: None
Impact: Potential system compromise or data leakage
Affected Products
Share secrets securely
Ameeba is private infrastructure for communication and sensitive work built on encrypted identity instead of exposed corporate identity systems.
Passwords, credentials, confidential files, screenshots, internal discussions, sensitive AI context, and private coordination should not become exposed across ordinary communication platforms.
- • Encrypted identity
- • Private Spaces for organizations and teams
- • End-to-end encrypted chat, calls, files, and notes
- • Sensitive AI work and protected collaboration
- • Built for information that cannot leak
Our mission is to secure human work alongside AI.
Product | Affected Versions
Mockoon | Prior to 9.2.0
How the Exploit Works
The vulnerability stems from the way Mockoon handles the configuration for static file serving in its mock API. The server filename is generated via templating features from user input, which leaves the system open to Path Traversal and LFI attacks. An attacker could manipulate the input to traverse the file directory and gain access to any file in the mock server filesystem.
Conceptual Example Code
Here’s a conceptual example of how the vulnerability could be exploited. The attacker sends a malicious request to the server:
GET /api/files/../../etc/passwd HTTP/1.1
Host: vulnerablemockserver.com
In this example, the malicious request is attempting to traverse the directory to access the ‘/etc/passwd’ file, which contains sensitive user data.
Impact and Mitigation
The successful exploitation of this vulnerability could lead to unauthorized access to sensitive data, potentially resulting in system compromise or data leakage. Users are strongly advised to apply the patch provided by the vendor in version 9.2.0. In cases where patching is not immediately possible, using a Web Application Firewall (WAF) or Intrusion Detection System (IDS) could serve as a temporary mitigation technique.
