ns-langgraph-agents
Audited by Socket on Oct 24, 2026
2 alerts found:
Anomalyx2This code provides an agent HTTP API and passes request data to graph and persistence-related operations. The main security concern is that this file shows no authentication and derives user identity from the spoofable x-user-id header, while message and resume routes accept thread IDs from the path; fixed tenant ID "1" further makes isolation dependent on other modules. Exception messages are also exposed in 500 responses. Severity is moderate pending review of routing, deployment controls, and imported authorization helpers; no clear malware indicators are present.
No explicit malicious payload (exfiltration, command execution, or persistence) is present in this fragment. However, it performs high-impact configuration tampering: disables LangChain tracing and LLM usage, forces in-memory checkpointing, and deletes likely sensitive/required environment variables (API key and database URL). This behavior is consistent with intentional disruption/disablement (sabotage or stealth of observability), and should be treated as a security concern if unexpected in the dependency’s expected role.