# CVE-2025-59049: Mockoon has a Path Traversal and LFI in the static file serving endpoint

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.02%, higher than 81% of CVEs (2026-12-01)
- Published: 2025-03-11T16:17:42.000Z
- Modified: 2026-06-17T09:45:30.143Z
- Also known as: GHSA-w7f9-wqc4-3wxr
- Weaknesses: CWE-22, CWE-24, CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mockoon mockoon: < 9.2.0
- @mockoon/commons-server (npm): before 9.2.0
- @mockoon/cli (npm): before 9.2.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `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> (web)
- <https://github.com/mockoon/mockoon/commit/c7f6e23e87dc3b8cc44e5802af046200a797bd2e> (web)
- <https://github.com/mockoon/mockoon/blob/1ed31c4059d7f757f6cb2a43e10dc81b0d9c55a9/packages/commons-server/src/libs/server/server.ts#L1400> (web)
- <https://github.com/mockoon/mockoon/blob/1ed31c4059d7f757f6cb2a43e10dc81b0d9c55a9/packages/commons-server/src/libs/server/server.ts#L1551> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59049> (advisory)
- <https://github.com/mockoon/mockoon> (package)

## Sources

- CVE List: [CVE-2025-59049](https://www.cve.org/CVERecord?id=CVE-2025-59049), CVE Terms of Use, modified 2025-09-10
- GitHub Advisory Database: [GHSA-w7f9-wqc4-3wxr](https://github.com/advisories/GHSA-w7f9-wqc4-3wxr), CC-BY-4.0, modified 2025-09-13
- NVD: [CVE-2025-59049](https://nvd.nist.gov/vuln/detail/CVE-2025-59049), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59049 · Whole record: https://cve.day/CVE-2025-59049.json · Rebuilt by cve.day 2026-11-25T22:59:04.506Z
