Vulnerability · Published Sep 10, 2025 · Assigned by GitHub_M
CVE-2025-59049Mockoon has a Path Traversal and LFI in the static file serving endpoint
High 7.5
In plain English
A high-severity path traversal in mockoon from mockoon. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @mockoon/cli | 9.2.0 | GHSA-w7f9-wqc4-3wxr |
| npm | @mockoon/commons-server | 9.2.0 | GHSA-w7f9-wqc4-3wxr |
Affected products (as reported)
Weakness: CWE-73, CWE-22, CWE-24 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/mockoon/mockoon/security/advisories/GHSA-w7f9-wqc4-3wxr x_refsource_CONFIRM
- https://github.com/mockoon/mockoon/commit/c7f6e23e87dc3b8cc44e5802af046200a797bd2e x_refsource_MISC
- https://github.com/mockoon/mockoon/blob/1ed31c4059d7f757f6cb2a43e10dc81b0d9c55a9/packages/commons-server/src/libs/server/server.ts#L1400 x_refsource_MISC
- https://github.com/mockoon/mockoon/blob/1ed31c4059d7f757f6cb2a43e10dc81b0d9c55a9/packages/commons-server/src/libs/server/server.ts#L1551 x_refsource_MISC