GitHub Advisoryadvisory · npm
GHSA-4h5r-5jm8-jxjm gemini-mcp-tool vulnerable to OS command injection and @file exfiltration via prompt quoting (CVE-2026-0755)
CRITICAL
Official page ↗
- Aliases
- CVE-2026-0755
- Ecosystem
- npm
- Packages
- gemini-mcp-tool
- Severity
- Critical
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-78
- Reviewed
- 2026-06-18
Affected packages
• npm gemini-mcp-tool: >= 1.1.2, < 1.1.6 → fixed in 1.1.6
Description
Untrusted prompt input could reach the Gemini CLI @file parser, allowing read/exfiltration of arbitrary local files (@/etc/passwd, @~/.ssh/id_rsa, @../../secret). On Windows, unquoted cmd.exe metacharacters could break out into OS command injection.
Fix (1.1.6): removed the broken shell:false double-quote wrapping; added assertSafeFileReferences() to contain @file refs to the working directory; hardened Windows cmd.exe argument quoting.
Related
Alias · CVE (1)
- CVE-2026-0755 gemini-mcp-tool execAsync Command Injection Remote Code Execution Vulnerability. vulnerability
Weakness · CWE (1)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness