CVE-2026-59149

Source
https://cve.org/CVERecord?id=CVE-2026-59149
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59149.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-59149
Aliases
  • GHSA-8wqc-v2q8-vff2
Published
2026-07-09T18:28:35.693Z
Modified
2026-07-15T01:48:54.600568415Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-22",
        "CWE-23"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59149.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/mockoon/mockoon

Affected ranges

Type
GIT
Repo
https://github.com/mockoon/mockoon
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "9.7.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

cli-v1.*
cli-v1.6.1
cli-v1.6.2
cli-v2.*
cli-v2.0.0
cli-v2.1.0
cli-v2.2.0
cli-v2.2.1
cloud-v9.*
cloud-v9.3.1
cloud-v9.3.2
Other
libs-v2023-01
libs-v2023-03
libs-v3.*
libs-v3.0.0
libs-v3.1.0
libs-v4.*
libs-v4.0.0
libs-v4.1.0
libs-v5.*
libs-v5.0.0
libs-v5.1.0
libs-v6.*
libs-v6.0.0
libs-v6.0.1
libs-v6.1.0
libs-v6.2.0
libs-v7.*
libs-v7.0.0
libs-v8.*
libs-v8.0.0
libs-v8.1.0
libs-v8.1.1
libs-v8.2.0
libs-v8.3.0
libs-v8.4.0
libs-v9.*
libs-v9.0.0
libs-v9.1.0
libs-v9.2.0
libs-v9.3.0
libs-v9.4.0
libs-v9.5.0
libs-v9.6.0
libs-v9.6.1
libs-v9.7.0
v0.*
v0.1.0
v0.1.1
v0.2.0
v0.3.0
v0.4.0
v1.*
v1.0.0
v1.1.0
v1.10.0
v1.11.0
v1.12.0
v1.13.0
v1.14.0
v1.14.1
v1.15.0
v1.16.0
v1.17.0
v1.18.0
v1.18.1
v1.19.0
v1.2.0
v1.20.0
v1.21.0
v1.21.1
v1.22.0
v1.23.0
v1.3.0
v1.4.0
v1.5.0
v1.5.1
v1.6.0
v1.7.0
v1.8.0
v1.9.0
v3.*
v3.0.0
v3.1.0
v4.*
v4.0.0
v4.1.0
v5.*
v5.0.0
v5.1.0
v6.*
v6.0.0
v6.0.1
v6.1.0
v6.2.0
v7.*
v7.0.0
v8.*
v8.0.0
v8.1.0
v8.1.1
v8.2.0
v8.3.0
v8.4.0
v9.*
v9.0.0
v9.1.0
v9.2.0
v9.3.0
v9.4.0
v9.5.0
v9.6.0
v9.6.1
v9.7.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59149.json"