Description
FrontMCP is a TypeScript-first framework for the Model Context Protocol (MCP). Prior to 1.5.7, the sandboxed codecall:execute tool exposes live host Zod schema instances to the script via getTool(), and because Zod v4 defines _zod as a non-configurable, non-writable own property, the ECMAScript Proxy invariants force the security membrane to hand back the raw host object, letting a script reach _zod.constr.constructor (the host Function constructor) and execute arbitrary code in the server process. A single tools/call is sufficient to escape the sandbox and achieve remote code execution as the server user, exposing everything the process holds such as OAuth client secrets, JWT_SECRET, session keys, database credentials, and cloud instance metadata. Because the framework's DEFAULT_AUTH_OPTIONS is public mode, an unconfigured server serves this to unauthenticated callers, and on authenticated servers an indirect prompt injection in tool output or fetched content can trigger it without a human attackerThis issue is fixed in version 1.5.7.
Published: 2026-08-05
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A sandbox escape in FrontMCP’s codecall:execute tool allows a script to access the host’s Zod schema instance. The Zod library exposes a protected _zod property that, when exposed through the insecure getTool() function, gives a script a reference to the host’s Function constructor. From that reference an attacker can run arbitrary JavaScript code in the server process. The resulting remote code execution exposes all data the process holds, including OAuth client secrets, JWT secret strings, session keys, database credentials, and cloud instance metadata.

Affected Systems

The vulnerability exists in the agentfront:frontmcp framework in all releases prior to version 1.5.7. The framework is a TypeScript‑first Model Context Protocol implementation. When the default authentication option is set to public, an unconfigured server allows unauthenticated callers to trigger the vulnerability; on authenticated servers, indirect prompt injection can also trigger it without direct user interaction.

Risk and Exploitability

With a CVSS score of 9.3 the risk is considered critical. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is remote via a crafted tool invocation that uses getTool() to retrieve the live Zod schema. The attacker only needs to send a single tool call; unauthenticated access is possible when DEFAULT_AUTH_OPTIONS is left on public mode. Successful exploitation results in full compromise of the server process.

Generated by OpenCVE AI on August 6, 2026 at 00:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to FrontMCP 1.5.7 or later to remove the exposed Zod schema access.
  • If an upgrade cannot be performed immediately, disable or remove the sandboxed codecall:execute tool from the deployment, or restrict its configuration so that it is not callable by external callers.
  • Reconfigure the server to disable DEFAULT_AUTH_OPTIONS public mode or enforce strong authentication so that only trusted clients can invoke tools.

Generated by OpenCVE AI on August 6, 2026 at 00:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 06 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 06 Aug 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Agentfront
Agentfront frontmcp
Vendors & Products Agentfront
Agentfront frontmcp

Wed, 05 Aug 2026 23:30:00 +0000

Type Values Removed Values Added
Description FrontMCP is a TypeScript-first framework for the Model Context Protocol (MCP). Prior to 1.5.7, the sandboxed codecall:execute tool exposes live host Zod schema instances to the script via getTool(), and because Zod v4 defines _zod as a non-configurable, non-writable own property, the ECMAScript Proxy invariants force the security membrane to hand back the raw host object, letting a script reach _zod.constr.constructor (the host Function constructor) and execute arbitrary code in the server process. A single tools/call is sufficient to escape the sandbox and achieve remote code execution as the server user, exposing everything the process holds such as OAuth client secrets, JWT_SECRET, session keys, database credentials, and cloud instance metadata. Because the framework's DEFAULT_AUTH_OPTIONS is public mode, an unconfigured server serves this to unauthenticated callers, and on authenticated servers an indirect prompt injection in tool output or fetched content can trigger it without a human attackerThis issue is fixed in version 1.5.7.
Title FrontMCP: CodeCall sandbox escape -> host RCE via live Zod schema exposure by getTool
Weaknesses CWE-94
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Agentfront Frontmcp
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-06T18:44:39.455Z

Reserved: 2026-07-29T18:47:17.073Z

Link: CVE-2026-67531

cve-icon Vulnrichment

Updated: 2026-08-06T18:39:10.006Z

cve-icon NVD

Status : Received

Published: 2026-08-06T00:16:53.733

Modified: 2026-08-06T22:18:21.897

Link: CVE-2026-67531

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-06T00:30:03Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')