claude-api

Warn

Audited by Socket on Sep 4, 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 4, 2026, 06:57 AM
Package URL
pkg:socket/skills-sh/dennislee928%2Fethic-latex%2Fclaude-api%2F@78a5db65c15f62eeb51df2413f9a69b320b3425191d8ae79a1dafdc23e242888
Security Audit — socket — claude-api