grok-faf-mcp has an arbitrary local file read via unconfined `path` argument in FAF tools
GHSA-cc2g-gq8c-r332 · published 2026-08-19
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 1.5.3
An MCP client — or an LLM prompt-injected via attacker-controlled content (a web page, README, ticket, or .faf) into issuing a tool call — can read any file the server process can read: SSH keys (~/.ssh/id_rsa), cloud credentials (~/.aws/credentials), .env files, source, /etc/passwd. This is a sensitive-information-disclosure (CWE-200) primitive that far exceeds the declared .faf project-context scope. The server runs over stdio, so the read is reached by a crafted tool call (e.g. a prompt-injected agent processing attacker-controlled content).
Upgrade grok-faf-mcp to 1.5.3 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Fixed in 1.5.3 by confining every caller-supplied path before any filesystem access (safe-path.ts): Reads are restricted to .faf / .fafm context files, so non-context files (secrets) are refused regardless of directory. General file ops (fafread / fafwrite) are confined to the project root (cwd + system temp; override with FAFALLOWEDROOTS). Upgrade: npm install -g [email protected] (or bunx grok-faf-mcp).
If you cannot upgrade immediately, run the server only against trusted local projects, and set FAFALLOWEDROOTS (patched versions) to a single project directory for a hard directory boundary.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| grok-faf-mcp | npm | <= 1.5.2 | 1.5.3 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.