langgraph-agent-patterns
Warn
Audited by Socket on Aug 20, 2026
1 alert found:
SecuritySecurityscripts/visualize_graph.py
MEDIUMSecurityMEDIUM
scripts/visualize_graph.py
This module is not overtly malicious in its own logic (no explicit exfiltration, backdoor, or system-command behavior is present). However, it performs a high-severity security-relevant action: it executes an arbitrary Python file specified by the caller via spec.loader.exec_module, effectively enabling code execution under the running user's privileges. Additionally, it writes output to an unrestricted attacker-controlled path and embeds untrusted graph identifiers/conditions into Mermaid/Markdown with limited sanitization. Overall, treat it as a dangerous utility in untrusted input scenarios; only use with fully trusted, fixed module paths and output destinations.
Confidence: 74%Severity: 78%
Audit Metadata