AAK-MCP-FRONTMCP-CVE-2026-67531-001: FrontMCP sandbox escape via Zod schema proxy reaches RCE (below 1.5.7)
- Severity
- HIGH
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py- Auto-fixable
- No.
- SARIF name
FrontMcpZodSandboxEscapeRce
What it detects
frontmcp before 1.5.7 exposes live host Zod schema instances to the sandboxed codecall:execute tool through getTool(); because Zod v4's _zod is a non-configurable, non-writable own property, the Proxy invariants force the security membrane to return the raw host object, letting a script reach _zod.constr.constructor (the host Function constructor) and run arbitrary code as the server user. One tools/call is sufficient, and the framework's default public auth mode serves it to unauthenticated callers (CVE-2026-67531). A pinnable npm artifact (latest 1.6.0) the pin scanner resolves from package.json / lockfiles / .mcp.json.
How to fix
Upgrade frontmcp to >= 1.5.7 and pin it. Do not run the code-execution tool in public auth mode; require authentication and treat tool output / fetched content as untrusted so an indirect prompt injection cannot trigger it.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-FRONTMCP-CVE-2026-67531-001
Limitations
Reads frontmcp and @frontmcp/adapters in package.json, .mcp.json, mcp.json, claude_desktop_config.json and the package-lock.json, pnpm-lock.yaml and yarn.lock lockfiles at the project root only, taking the lowest version a range allows and reporting a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (packages/app/package.json) or in a lockfile format the reader does not parse (a Yarn 2+ yarn.lock). A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.
References
- CVE: CVE-2026-67531, CVE-2026-59973
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP05:2025 (Command Injection & Execution)
- OWASP Agentic Top 10: ASI04 (Agentic Supply Chain Vulnerabilities), ASI05 (Unexpected Code Execution (RCE))
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-RCE-01
- CSA AI Controls Matrix (AICM): STA-08, AIS-07, IVS-04
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-FRONTMCP-CVE-2026-67531-001.md: the page then shows that text, with the registry reference appended under it.