CVE-2025-59049
Description
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.
How to fix
- @mockoon/commons-server9.2.0 or later
- @mockoon/cli9.2.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| @mockoon/commons-servernpm | v < 9.2.0 | 9.2.0 |
| @mockoon/clinpm | v < 9.2.0 | 9.2.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.