{"id":"CVE-2026-57442","aliases":["CVE-2026-57442","GHSA-9c83-rr99-vfwj"],"related":[],"kind":"vulnerability","state":"published","title":"MCPVault: PathFilter restricted directories (.git/.obsidian/node_modules) only denied at vault root, not nested","summary":"MCPVault is a lightweight Model Context Protocol server for safe access to files in an Obsidian vault. Prior to 0.11.5, PathFilter in src/pathfilter.ts uses root-anchored deny-list patterns, so nested .git, .obsidian, and node_modules path segments do not match the restriction and pass both isAllowed() and isAllowedForListing(). An attacker who influences a path selected by an AI agent can traverse nested repository or Obsidian metadata, read remote URLs or embedded tokens, or cause nested node_modules content to pollute the listAllTags index. This issue is fixed in version 0.11.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"MCPVault is a lightweight Model Context Protocol server for safe access to files in an Obsidian vault. Prior to 0.11.5, PathFilter in src/pathfilter.ts uses root-anchored deny-list patterns, so nested .git, .obsidian, and node_modules path segments do not match the restriction and pass both isAllowed() and isAllowedForListing(). An attacker who influences a path selected by an AI agent can traverse nested repository or Obsidian metadata, read remote URLs or embedded tokens, or cause nested node_modules content to pollute the listAllTags index. This issue is fixed in version 0.11.5.","source":"cvelist"},{"lang":"en","text":"PathFilter's deny-list glob patterns are anchored, so `.git`, `.obsidian`, and `node_modules` were only blocked at the vault root. Nested copies inside the vault (e.g. `tools/cli/node_modules/...`, `tools/somerepo/.git/config`, a nested `.obsidian/`) were fully traversable via isAllowed/isAllowedForListing. Impact: a nested `.git/config` (remote URLs / embedded tokens) and nested `.obsidian` contents could be read, under the same prompt-injection threat model as GHSA-j99q-93c9-h869 (an attacker influences the path an agent reads). It also caused nested `node_modules` to pollute the tag index (#128, the public symptom). Fixed in 0.11.5 by denying these restricted names at any path depth (matched case-insensitively as any path segment).","format":"markdown","source":"ghsa"}],"published":"2026-06-19T21:42:24.000Z","modified":"2026-09-30T17:51:56.193Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-22","CWE-538"],"affected":[{"ranges":[{"version":"< 0.11.5","status":"affected"}],"vendor":"bitbonsai","product":"mcpvault","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.11.5"}],"ecosystem":"npm","package":"@bitbonsai/mcpvault","purl":"pkg:npm/%40bitbonsai/mcpvault","source":"ghsa"}],"references":[{"url":"https://github.com/bitbonsai/mcpvault/security/advisories/GHSA-9c83-rr99-vfwj","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bitbonsai/mcpvault/issues/128","tags":["exploit","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bitbonsai/mcpvault/commit/0adb43901e1a08e85e14b42a8df2442fabc0b64a","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bitbonsai/mcpvault/commit/8795716b90d1c4090a82a58647e030763513f17e","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bitbonsai/mcpvault","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-09-16T14:01:44.030Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-57442","url":"https://www.cve.org/CVERecord?id=CVE-2026-57442","licence":"CVE Terms of Use","modified":"2026-09-16T14:01:51.831Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9c83-rr99-vfwj","url":"https://github.com/advisories/GHSA-9c83-rr99-vfwj","licence":"CC-BY-4.0","modified":"2026-07-20T21:56:45.025Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-57442","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57442","licence":"Public domain","modified":"2026-09-30T17:51:56.193Z"}],"updatedAt":"2026-11-25T22:59:38.625Z","epss":{"score":0.00169,"percentile":0.06563,"date":"2026-12-01T12:00:22.000Z"}}