# GHSA-WP87-994X-J95X: LangGraph.js graph input could be interpreted as a control directive

- Database: GitHub
- Severity: CVSS 7.6 (High)
- Published: 2026-10-08
- Modified: 2026-10-08

## Affected versions

- @langchain/langgraph (npm): from 0.2.23, fixed in 1.4.21

## 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.

## References

- https://github.com/langchain-ai/langgraphjs/security/advisories/GHSA-wp87-994x-j95x

Page: https://cve.now/GHSA-WP87-994X-J95X

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
