CVE-2025-59049: Mockoon has a Path Traversal and LFI in the static file serving endpoint
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-59049?
CVE-2025-59049 has been rated with a moderate severity level due to the potential for sensitive data exposure from improperly handled user input.
How do I fix CVE-2025-59049?
To fix CVE-2025-59049, upgrade to Mockoon version 9.2.0 or later, which addresses the vulnerability.
What does CVE-2025-59049 affect?
CVE-2025-59049 affects all versions of Mockoon prior to 9.2.0, specifically in the way user input is used for static file serving configurations.
What type of vulnerability is CVE-2025-59049?
CVE-2025-59049 is a security vulnerability related to improper input validation that could lead to path traversal attacks.
Is CVE-2025-59049 widely known?
CVE-2025-59049 is known within the cybersecurity community and is documented for awareness and remediation.