LangGraph Python SDK request path injection in v3 stream state fetching
langchain-ai langgraph · langchain-ai langgraph-sdk
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| langgraph-sdk PyPI |
|
|
| langgraph PyPI |
|
|
langchain-ai langgraph · langchain-ai langgraph-sdk
| Product | Affected | Fixed in |
|---|---|---|
| langgraph-sdk PyPI |
|
|
| langgraph PyPI |
|
|
LangGraph Python SDK is used to connect to running LangGraph API servers, manage assistants, threads and stream runs from Python applications. From langgraph-sdk 0.4.0 until 0.4.6, and from langgraph 1.2.3 until 1.2.14 when RemoteGraph v3 streaming uses an affected langgraph-sdk version, the synchronous and asynchronous v3 stream get_tree and _fetch_state helpers interpolate caller-controlled assistant_id and thread_id values into authenticated GET request paths without using _quote_path_param. Relative path segments can therefore be normalized into another readable path on the configured server while retaining authentication headers. This issue is fixed in langgraph-sdk 0.4.6 and langgraph 1.2.14.
From the CVE record · GitHub_M
The synchronous and asynchronous RemoteGraph v3 streaming helpers place caller-controlled assistant_id and thread_id values into authenticated GET paths without quoting them. Someone who controls those values can use relative path segments to redirect a request to another readable path on the configured server while retaining authentication headers.
Check applications using PyPI langgraph-sdk >=0.4.0 and <0.4.6, or langgraph >=1.2.3 and <1.2.14 when RemoteGraph v3 streaming uses an affected langgraph-sdk version.