{"id":"CVE-2026-57441","aliases":["CVE-2026-57441","GHSA-j99q-93c9-h869"],"related":[],"kind":"vulnerability","state":"published","title":"MCPVault: PathFilter restricted-directory deny-list bypass via case and trailing dot/space equivalence","summary":"MCPVault is a lightweight Model Context Protocol server for safe access to files in an Obsidian vault. Prior to 0.11.4, PathFilter in src/pathfilter.ts compiles restricted-directory patterns case-sensitively and compares paths without canonicalizing filesystem-equivalent segment names. On case-insensitive macOS and Windows filesystems, case variants of .git, .obsidian, or node_modules pass both isAllowed() and isAllowedForListing() even though the operating system opens the restricted directory, and Windows trailing dots or spaces provide the same bypass. An attacker who influences a path selected by an AI agent can use the bypass in read, write, move, search, or listing operations to expose or modify sensitive repository and Obsidian metadata. Vault-root .. containment is not affected. This issue is fixed in version 0.11.4.","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.4, PathFilter in src/pathfilter.ts compiles restricted-directory patterns case-sensitively and compares paths without canonicalizing filesystem-equivalent segment names. On case-insensitive macOS and Windows filesystems, case variants of .git, .obsidian, or node_modules pass both isAllowed() and isAllowedForListing() even though the operating system opens the restricted directory, and Windows trailing dots or spaces provide the same bypass. An attacker who influences a path selected by an AI agent can use the bypass in read, write, move, search, or listing operations to expose or modify sensitive repository and Obsidian metadata. Vault-root .. containment is not affected. This issue is fixed in version 0.11.4.","source":"cvelist"},{"lang":"en","text":"On case-insensitive filesystems (macOS, Windows), PathFilter compiled its deny-list patterns case-sensitively and matched the path verbatim, so names like `.Git/config`, `.GIT/config`, or `.oBsIdIaN/secrets.md` slipped past the `.git`/`.obsidian`/`node_modules` restriction while the OS opened the real file. On Windows, trailing dots/spaces (`.git./config`, `.git /config`) bypassed it the same way. Affects both `isAllowed` (read/write/move/search) and `isAllowedForListing`. Vault-root `..` containment is NOT affected. Fixed in 0.11.4 by case-insensitive matching plus per-segment canonicalization before the deny-list check. Reported privately by novice-22.","format":"markdown","source":"ghsa"}],"published":"2026-06-18T14:30:43.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:H/VA:L/SC:N/SI:N/SA:N","score":8.4,"rating":"HIGH"},"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:H/VA:L/SC:N/SI:N/SA:N","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-41","CWE-178"],"affected":[{"ranges":[{"version":"< 0.11.4","status":"affected"}],"vendor":"bitbonsai","product":"mcpvault","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.11.4"}],"ecosystem":"npm","package":"@bitbonsai/mcpvault","purl":"pkg:npm/%40bitbonsai/mcpvault","source":"ghsa"}],"references":[{"url":"https://github.com/bitbonsai/mcpvault/security/advisories/GHSA-j99q-93c9-h869","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bitbonsai/mcpvault/commit/0adb43901e1a08e85e14b42a8df2442fabc0b64a","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bitbonsai/mcpvault/commit/b9ea91a1c6d6adfec3e9e0483d9d79669e927fa8","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":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-15T18:57:31.418Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-57441","url":"https://www.cve.org/CVERecord?id=CVE-2026-57441","licence":"CVE Terms of Use","modified":"2026-09-15T19:43:58.303Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j99q-93c9-h869","url":"https://github.com/advisories/GHSA-j99q-93c9-h869","licence":"CC-BY-4.0","modified":"2026-07-20T21:56:44.800Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-57441","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57441","licence":"Public domain","modified":"2026-09-30T17:51:56.193Z"}],"updatedAt":"2026-11-25T22:59:38.624Z","epss":{"score":0.00177,"percentile":0.07654,"date":"2026-12-01T12:00:22.000Z"}}