claude-agent-sdk
Fail
Audited by Socket on Feb 15, 2026
1 alert found:
Obfuscated FileObfuscated Filetemplates/custom-mcp-server.ts
HIGHObfuscated FileHIGH
templates/custom-mcp-server.ts
The code is not obviously obfuscated or containing an intentional backdoor, but it contains high-risk constructs if tool inputs can be controlled by an attacker or by the LLM: specifically eval(args.expression) (enables arbitrary code execution) and direct interpolation of args.location into fetch URLs (SSRF/unintended outbound requests). In its current form, this example should not be used in production without removing eval, validating/whitelisting inputs, and adding authentication and logging controls. Treat as a significant security concern rather than benign example code.
Confidence: 98%
Audit Metadata