Mockoon has a Path Traversal and LFI in the static file serving endpoint
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| mockoon | mockoon | before 9.2.0 | 9.2.0 | Patch available | CNA |
| — | @mockoon/commons-server (npm) | before 9.2.0 | 9.2.0 | Patch available | GHSA-w7f9-wqc4-3wxr |
| — | @mockoon/cli (npm) | before 9.2.0 | 9.2.0 | Patch available | GHSA-w7f9-wqc4-3wxr |
- mockoon Vendormockoon Affected before 9.2.0 Fixed in 9.2.0 Patch available CNA
- @mockoon/commons-server (npm) Vendor— Affected before 9.2.0 Fixed in 9.2.0 Patch available GHSA-w7f9-wqc4-3wxr
- @mockoon/cli (npm) Vendor— Affected before 9.2.0 Fixed in 9.2.0 Patch available GHSA-w7f9-wqc4-3wxr
Remediation
- Fix · CNA mockoon (mockoon) Fixed in 9.2.0
- Fix · GHSA-w7f9-wqc4-3wxr @mockoon/commons-server (npm) Fixed in 9.2.0 Advisory →
- Fix · GHSA-w7f9-wqc4-3wxr @mockoon/cli (npm) Fixed in 9.2.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59049
- 2026-10-03 Alias added: GHSA-w7f9-wqc4-3wxr
References
Other 5
- https://github.com/mockoon/mockoon/security/advisories/GHSA-w7f9-wqc4-3wxr
- https://github.com/mockoon/mockoon/commit/c7f6e23e87dc3b8cc44e5802af046200a797bd2e
- https://github.com/mockoon/mockoon/blob/1ed31c4059d7f757f6cb2a43e10dc81b0d9c55a9/packages/commons-server/src/libs/server/server.ts#L1400
- https://github.com/mockoon/mockoon/blob/1ed31c4059d7f757f6cb2a43e10dc81b0d9c55a9/packages/commons-server/src/libs/server/server.ts#L1551
- https://github.com/mockoon/mockoon
More mockoon vulnerabilities
- TI-2026-42315 Mockoon: Unauthenticated admin API + wildcard CORS allows mock-state hijack and secret theft CVSS 3.1HIGH 8.8
- TI-2026-42316 Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check) CVSS 3.1MEDIUM 6.5
Sources
- CVE-2025-59049 · CVE Program
- CVE-2025-59049 · NVD
- FIRST EPSS
- GHSA-w7f9-wqc4-3wxr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences