{"id":"CVE-2025-59049","published":"2025-09-10T18:49:06Z","modified":"2025-09-10T19:19:20Z","title":"Mockoon has a Path Traversal and LFI in the static file serving endpoint","vendor":"mockoon","product":"mockoon","tier":"tail","description":{"text":"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.\nThe issue may be particularly relevant in cloud hosted server instances. Version 9.2.0 fixes the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01901,"percentile":0.80201,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-24","name":"Path Traversal: '../filedir'"}],"references":[{"url":"https://github.com/mockoon/mockoon/security/advisories/GHSA-w7f9-wqc4-3wxr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mockoon/mockoon/commit/c7f6e23e87dc3b8cc44e5802af046200a797bd2e","tags":["x_refsource_MISC"]},{"url":"https://github.com/mockoon/mockoon/blob/1ed31c4059d7f757f6cb2a43e10dc81b0d9c55a9/packages/commons-server/src/libs/server/server.ts#L1400","tags":["x_refsource_MISC"]},{"url":"https://github.com/mockoon/mockoon/blob/1ed31c4059d7f757f6cb2a43e10dc81b0d9c55a9/packages/commons-server/src/libs/server/server.ts#L1551","tags":["x_refsource_MISC"]}],"priority":{"score":26.3,"factors":[{"name":"EPSS percentile","points":16.04},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"nuclei":[{"id":"CVE-2025-59049","name":"Mockoon < 9.2.0 - Path Traversal","severity":"high","path":"http/cves/2025/CVE-2025-59049.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-59049.yaml"}],"provenance":"source"},"vendorSlug":"mockoon","affectedVersions":[{"vendor":"mockoon","product":"mockoon","versions":["< 9.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-09-10T19:18:51.161952Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@mockoon/commons-server","vulnerableRanges":["<9.2.0"],"patched":["9.2.0"],"from":["GHSA-w7f9-wqc4-3wxr"],"provenance":"source"},{"ecosystem":"npm","package":"@mockoon/cli","vulnerableRanges":["<9.2.0"],"patched":["9.2.0"],"from":["GHSA-w7f9-wqc4-3wxr"],"provenance":"source"}],"summary":{"text":"Mockoon, a tool for designing and running mock APIs, has a path traversal and local file inclusion flaw in its static file serving endpoint, affecting versions before 9.2.0. The server filename is built through templating from user-supplied input, so an attacker can read any file on the mock server's filesystem over the network without authentication or user interaction, provided the static file serving configuration follows the pattern in the documentation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:38:47Z"},"euvd":{"id":"EUVD-2025-27607","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mockoon-cve-2025-59049","children":[{"from":"CVE-2025-59049","to":"CVE-2026-59148","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@mockoon/commons-server","fromFixed":"9.2.0","toFixed":"9.7.0","daysApart":302},{"kind":"version-step","provenance":"source","package":"npm:@mockoon/cli","fromFixed":"9.2.0","toFixed":"9.7.0","daysApart":302},{"kind":"same-code","provenance":"machine","files":["packages/commons-server/src/libs/server/server.ts","packages/commons/src/models/server.model.ts","packages/serverless/src/libs/serverless.ts"],"commits":["https://github.com/mockoon/mockoon/commit/c7f6e23e87dc3b8cc44e5802af046200a797bd2e","https://github.com/mockoon/mockoon/commit/c420b5a56918475b8663977b51e5f986e45b3299"],"basis":"shared function","functions":["MockoonServer"]}]},{"from":"CVE-2025-59049","to":"CVE-2026-59149","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@mockoon/commons-server","fromFixed":"9.2.0","toFixed":"9.7.0","daysApart":302},{"kind":"version-step","provenance":"source","package":"npm:@mockoon/cli","fromFixed":"9.2.0","toFixed":"9.7.0","daysApart":302},{"kind":"same-code","provenance":"machine","files":["packages/commons-server/src/libs/server/server.ts"],"commits":["https://github.com/mockoon/mockoon/commit/c7f6e23e87dc3b8cc44e5802af046200a797bd2e","https://github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585"],"basis":"shared function","functions":["MockoonServer"]}]}],"packageHistory":[{"cve":"CVE-2025-59049","published":"2025-09-10","fixed":"9.2.0","kev":false},{"cve":"CVE-2026-59148","published":"2026-07-09","fixed":"9.7.0","kev":false},{"cve":"CVE-2026-59149","published":"2026-07-09","fixed":"9.7.0","kev":false}],"package":"npm:@mockoon/commons-server"}}