Skip to main content
Menu
Advisories

LangGraph.js graph input could be interpreted as a control directive

GHSA-WP87-994X-J95XPublished Updated GitHub

Description

Impact

@langchain/langgraph could interpret a plain JSON object supplied as ordinary graph input as a control directive.

An attacker able to provide graph input could alter graph state or redirect execution. This could bypass application-defined processing nodes, including validation and approval steps. In applications exposing sensitive tools, the attacker could cause unauthorized tool execution with the application’s permissions.

Applications are affected when they pass untrusted JSON directly to a graph and rely on the graph’s normal execution path to enforce validation or authorization.

Patches

This issue is fixed in @langchain/langgraph version 1.4.21.

Workarounds

Do not pass untrusted JSON directly to a graph. Construct graph state server-side and allow only the state fields expected by the application.

Applications should also enforce authorization at sensitive operations rather than relying only on earlier graph nodes.

Affected versions

References

GitHub · langchain-ai/langgraphjs