CVE-2026-59149 (GCVE-0-2026-59149)
Vulnerability from cvelistv5 – Published: 2026-07-09 18:28 – Updated: 2026-07-09 18:41
VLAI
EPSS
VEX
Title
Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)
Summary
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.
Severity
6.5 (Medium)
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator (v2.0.3)
CWE
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/mockoon/mockoon/security/advis… | x_refsource_CONFIRM |
| https://github.com/mockoon/mockoon/pull/2255 | x_refsource_MISC |
| https://github.com/mockoon/mockoon/commit/b42bdfb… | x_refsource_MISC |
| https://github.com/mockoon/mockoon/releases/tag/v9.7.0 | x_refsource_MISC |
| https://mockoon.com/releases/9.7.0 | x_refsource_MISC |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-59149",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-09T18:39:47.514756Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-09T18:41:45.833Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "mockoon",
"vendor": "mockoon",
"versions": [
{
"status": "affected",
"version": "\u003c 9.7.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-22",
"description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-23",
"description": "CWE-23: Relative Path Traversal",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-07-09T18:28:35.693Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2"
},
{
"name": "https://github.com/mockoon/mockoon/pull/2255",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/mockoon/mockoon/pull/2255"
},
{
"name": "https://github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585"
},
{
"name": "https://github.com/mockoon/mockoon/releases/tag/v9.7.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/mockoon/mockoon/releases/tag/v9.7.0"
},
{
"name": "https://mockoon.com/releases/9.7.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://mockoon.com/releases/9.7.0"
}
],
"source": {
"advisory": "GHSA-8wqc-v2q8-vff2",
"discovery": "UNKNOWN"
},
"title": "Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-59149",
"datePublished": "2026-07-09T18:28:35.693Z",
"dateReserved": "2026-07-02T16:50:27.886Z",
"dateUpdated": "2026-07-09T18:41:45.833Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-59149",
"date": "2026-07-12",
"epss": "0.0033",
"percentile": "0.24969"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2026-59149\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2026-07-09T19:17:07.207\",\"lastModified\":\"2026-07-10T19:15:15.780\",\"vulnStatus\":\"Deferred\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"}],\"affected\":[{\"source\":\"security-advisories@github.com\",\"affectedData\":[{\"vendor\":\"mockoon\",\"product\":\"mockoon\",\"versions\":[{\"version\":\"\u003c 9.7.0\",\"status\":\"affected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N\",\"baseScore\":6.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":3.6}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2026-07-09T18:39:47.514756Z\",\"id\":\"CVE-2026-59149\",\"options\":[{\"exploitation\":\"poc\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-22\"},{\"lang\":\"en\",\"value\":\"CWE-23\"}]}],\"references\":[{\"url\":\"https://github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/mockoon/mockoon/pull/2255\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/mockoon/mockoon/releases/tag/v9.7.0\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://mockoon.com/releases/9.7.0\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2\",\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\"}]}}",
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-59149\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-07-09T18:39:47.514756Z\"}}}], \"references\": [{\"url\": \"https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2\", \"tags\": [\"exploit\"]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-07-09T18:41:12.461Z\"}}], \"cna\": {\"title\": \"Mockoon: Path traversal in templated `filePath` lets a request escape the served directory (prefix-only base check)\", \"source\": {\"advisory\": \"GHSA-8wqc-v2q8-vff2\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 6.5, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"REQUIRED\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"HIGH\"}}], \"affected\": [{\"vendor\": \"mockoon\", \"product\": \"mockoon\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 9.7.0\"}]}], \"references\": [{\"url\": \"https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2\", \"name\": \"https://github.com/mockoon/mockoon/security/advisories/GHSA-8wqc-v2q8-vff2\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://github.com/mockoon/mockoon/pull/2255\", \"name\": \"https://github.com/mockoon/mockoon/pull/2255\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585\", \"name\": \"https://github.com/mockoon/mockoon/commit/b42bdfb7f82e83f0e81bea8e6fe41adf5ec82585\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/mockoon/mockoon/releases/tag/v9.7.0\", \"name\": \"https://github.com/mockoon/mockoon/releases/tag/v9.7.0\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://mockoon.com/releases/9.7.0\", \"name\": \"https://mockoon.com/releases/9.7.0\", \"tags\": [\"x_refsource_MISC\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-22\", \"description\": \"CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)\"}]}, {\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-23\", \"description\": \"CWE-23: Relative Path Traversal\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2026-07-09T18:28:35.693Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2026-59149\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-07-09T18:41:45.833Z\", \"dateReserved\": \"2026-07-02T16:50:27.886Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2026-07-09T18:28:35.693Z\", \"assignerShortName\": \"GitHub_M\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…