{"cve":"CVE-2026-59149","nvd":{"published":"2026-07-09T19:17:07.207","modified":"2026-07-10T19:15:15.780","status":"Deferred","description":"Mockoon provides way to design and run mock APIs. Prior to 9.7.0, a FILE response whose filePath embeds request data is confined by getSafeFilePath in packages/commons-server/src/libs/server/server.ts with resolvedPath.startsWith(staticBaseDir). That prefix test has no path-separator boundary, so a ../-escaped path whose absolute form string-prefixes the base directory passes, allowing an unauthenticated client to read files from sibling paths outside the served directory through HTTP sendFile, WebSocket, or callbacks. This issue is fixed in version 9.7.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-22","CWE-23"],"references":["https://github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585","https://github.com/mockoon/mockoon/pull/2255","https://github.com/mockoon/mockoon/releases/tag/v9.7.0","https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2","https://mockoon.com/releases/9.7.0"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:44:02.134301115+00:00"},"epss":{"cve":"CVE-2026-59149","score":0.00483,"percentile":0.41641,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8wqc-v2q8-vff2","url":"https://osv.dev/vulnerability/GHSA-8wqc-v2q8-vff2","summary":"@Mockoon/commons-server: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)","modified":"2026-09-11T22:15:03.880357397Z","packages":[{"ecosystem":"npm","name":"@mockoon/commons-server","purl":"pkg:npm/%40mockoon/commons-server","ranges":["<9.7.0"],"fixed":["9.7.0"]},{"ecosystem":"npm","name":"@mockoon/cli","purl":"pkg:npm/%40mockoon/cli","ranges":["<9.7.0"],"fixed":["9.7.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}