claude-api

Warn

Audited by Socket on Sep 26, 2026

1 alert found:

Security
SecurityMEDIUM
templates/tool-use-advanced.ts

The module is a tool-calling example, but it contains a critical security flaw: calculatorTool.run() uses eval() on untrusted input (tool/model-controlled input.expression) without validation or sandboxing. This creates a high likelihood of arbitrary code execution if an attacker can influence tool arguments. Other tools primarily log and return mock data; they do not show direct exfiltration, but they do leak attacker-controlled strings into logs and stdout, increasing data exposure risk. Overall, this code should not be used in any security-sensitive or production context without removing eval and applying strict input/output controls.

Confidence: 78%Severity: 90%
Audit Metadata
Analyzed At
Sep 26, 2026, 11:45 AM
Package URL
pkg:socket/skills-sh/ma1orek%2Freplay%2Fclaude-api%2F@1b4d1c27eebc13be46666febb1c77b25f9823ecabbed894952f1732614c29227