@Mockoon/commons-server: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check) — GHSA-8WQC-V2Q8-VFF2
GitHub · GitHub · GHSA-8WQC-V2Q8-VFF2
ID
GHSA-8WQC-V2Q8-VFF2
GHSA-8WQC-V2Q8-VFF2
Date
Source
GitHub
GitHub
Vendor
GitHub
GitHub
Threat
medium
medium
CVSS
6.5
6.5
EPSS
0.00483
0.00483
Summary
## Summary A `FILE` response whose `filePath` embeds request data (e.g. `"/srv/public/{{queryParam 'name'}}"`, the documented way to let the client pick a file) is confined by `getSafeFilePath` 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. An unauthenticated client reads files…
Timeline
- Published by source
- 2026-09-11
Risk context
- Reported severity or threat level: medium.
- Reported CVSS score: 6.5 out of 10.
- Reported EPSS value: 0.00483.
- Review exposure for the affected product or family: npm: @mockoon/commons-server | npm: @mockoon/cli.
Product
npm: @mockoon/commons-server | npm: @mockoon/cli
What to do
General, cautious steps (verify details in the official source):
- Review exposure and plan remediation based on risk and environment.
- Identify affected product versions in your inventory and verify whether you are impacted.
- Apply vendor patches/updates or recommended mitigations as soon as available.
- Read the official advisory for exact affected versions and remediation steps.
Official advisory
Evidence and provenance
- Canonical advisory ID
- GHSA-8WQC-V2Q8-VFF2
- Source
- GitHub
- Vendor
- GitHub
- Published by source
- 2026-09-11
- Last source activity
- 2026-09-11
- Additional identifiers
- CVE-2026-59149
- Curated by
- hlukh.ch
Related advisories and connections
These advisories are connected by shared CVE, product, vendor, source, or time signals.