The package’s intended local API code execution runs supplied code with unrestricted access to the server environment, while the tool is enabled by default. This creates a meaningful agent capability and secret exposure risk, but the inspected source does not show automatic exfiltration or an unrelated destination.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
An MCP client invokes the included code execution tool with code defining run(client).
Impact
Supplied code can read unrelated environment secrets and potentially include them in calls to the configured API host. No automatic transfer to an unrelated collector was identified.
Mechanism
The package passes process.env and upstream client environment values to a Deno worker, grants it unrestricted environment access, and evaluates the supplied function. Network access is limited to the configured client base URL hostname.
Evidence
code-tool.jscode-tool-worker.jsserver.js