CVE-2026-59149
published medium CVSS 3.1 · 6.5Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mockoon | — | mockoon< 9.7.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mockoon | mockoon | < 9.7.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-23 CWE-23: Relative Path Traversal
References
5Provider assertions
2GitHub_M · cna
Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c45c55cb34de0f2761fd466eb1370dc9f74243cb7e49aaf9cd9abbb255343a7e
- Ingested
- 23 Sep 2026, 09:22:29 UTC
- Source record
- Official CVE record