langgraph
Warn
Audited by Socket on Nov 1, 2026
1 alert found:
SecuritySecuritysub-skills/basic-agent-graph.md
MEDIUMSecurityMEDIUM
sub-skills/basic-agent-graph.md
This is a ReAct-style agent example with a placeholder search tool and a calculator tool. The calculator passes model-provided input directly to unrestricted Python eval(), creating a high-impact code-execution risk if untrusted users can influence tool calls. No intentional malware or suspicious network destination is evident in the fragment; the OpenAI model invocation is part of the stated functionality. Severity is high for deployments that expose the agent to untrusted input; use a safe arithmetic parser or a tightly restricted evaluator instead.
Confidence: 99%Severity: 83%
Audit Metadata