CVE-2025-59049 Mockoon has a Path Traversal and LFI in the static file serving endpoint
HighCVSS 7.5
EPSS 1.9%
Scanner template
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| mockoon @mockoon/cli(npm) | < 9.2.0; <= 9.1.0 | 9.2.0 | Fixed |
| mockoon @mockoon/commons-server(npm) | < 9.2.0; <= 9.1.0 | 9.2.0 | Fixed |
| mockoon | = < 9.2.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mockoon @mockoon/commons-server(npm) | <= 9.1.0 | No fix listed |
| mockoon @mockoon/cli(npm) | <= 9.1.0 | No fix listed |
| mockoon | = < 9.2.0 | No fix listed |
| mockoon @mockoon/commons-server(npm) | < 9.2.0 | 9.2.0 |
| mockoon @mockoon/cli(npm) | < 9.2.0 | 9.2.0 |
References
- https://github.com/mockoon/mockoon/security/advisories/GHSA-w7f9-wqc4-3wxr vendor-advisory
- https://github.com/mockoon/mockoon/commit/c7f6e23e87dc3b8cc44e5802af046200a797bd2e patch
- https://github.com/mockoon/mockoon/blob/1ed31c4059d7f757f6cb2a43e10dc81b0d9c55a9/packages/commons-server/src/libs/server/server.ts#L1400
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product