Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @mockoon/cli
  4. ›
  5. CVE-2026-59149

CVE-2026-59149: @Mockoon/commons-server: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)

September 11, 2026

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 from sibling paths outside the served directory.

References

  • github.com/advisories/GHSA-8wqc-v2q8-vff2
  • github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585
  • github.com/mockoon/mockoon/pull/2255
  • github.com/mockoon/mockoon/releases/tag/v9.7.0
  • github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2
  • mockoon.com/releases/9.7.0
  • nvd.nist.gov/vuln/detail/CVE-2026-59149

Code Behaviors & Features

Detect and mitigate CVE-2026-59149 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 9.7.0

Fixed versions

  • 9.7.0

Solution

Upgrade to version 9.7.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-23: Relative Path Traversal

Source file

npm/@mockoon/cli/CVE-2026-59149.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:14 +0000.