Skip to content
Medium 4.3

LangGraph: Unencoded identifiers in LangGraph SDK v3 streaming can redirect authenticated GET requests

CVE-2026-118667 First seen on SecPulse

Affected packages

EcosystemPackageAffectedFixed
langchain-ai langgraph — —
langchain-ai langgraph-sdk — —
pip langgraph-sdk
< 0.4.6
0.4.6
pip langgraph
< 1.2.14
1.2.14
PyPI langgraph-sdk
≥ 0.4.0, < 0.4.6
0.4.6
PyPI langgraph
≥ 1.2.3, < 1.2.14
1.2.14
Original description The description as published by the source.

Summary

The LangGraph Python SDK v3 streaming client interpolates caller-supplied thread_id and assistant_id values into request paths without encoding them at four synchronous and asynchronous call sites. Relative path segments can therefore redirect an authenticated GET request to another path on the same configured server.

Details

The affected get_tree and _fetch_state implementations build request paths from raw identifiers rather than passing each identifier through the SDK's existing _quote_path_param helper. HTTP path normalization can collapse values containing relative segments before dispatch while retaining the client's authentication headers.

langgraph-sdk versions 0.4.0 through 0.4.5 are affected. The v3 stream module is not present in the 0.3.x release line.

RemoteGraph v3 streaming in langgraph 1.2.3 and later is also affected when used with a vulnerable langgraph-sdk version. It passes config["configurable"]["thread_id"] into threads.stream(...), and its dependency range permits affected SDK versions.

Impact

An application is affected only if it passes attacker-controlled text as a streaming thread_id or assistant_id. In that configuration, an attacker may select another readable path on the configured server and cause the SDK to return that response to the application. Through thread_id, the attacker can also control the query string, for example by targeting /store/items?namespace=...&key=...; assistant_id c…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details