GitHub Advisoryadvisory · npm

GHSA-j99q-93c9-h869 MCPVault: PathFilter restricted-directory deny-list bypass via case and trailing dot/space equivalence

MEDIUM Published 2026-06-18 Modified 2026-07-20 Official page ↗
Aliases
CVE-2026-57441
Ecosystem
npm
Packages
@bitbonsai/mcpvault
Severity
Moderate
CVSS 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
Weaknesses
CWE-178, CWE-41
Reviewed
2026-06-18

Affected packages

• npm @bitbonsai/mcpvault: < 0.11.4 → fixed in 0.11.4

Description

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.

Related

Alias · CVE (1)

  • CVE-2026-57441 MCPVault is a lightweight Model Context Protocol server for safe access to files in an Obsidian vault. vulnerability

Weakness · CWE (2)

  • CWE-178 Improper Handling of Case Sensitivity weakness
  • CWE-41 Improper Resolution of Path Equivalence weakness

References