Medium

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

  • Disclosed: 28.10.2026
  • Updated: 28.10.2026 23:17

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 controls only the path. The affected requests are GET operations, so this issue does not provide a write primitive.

The LangGraph Platform is not exposed to this issue.

Remediation

Upgrade langgraph-sdk to version 0.4.6 or later. The fix encodes assistant_id in get_tree and thread_id in _fetch_state with _quote_path_param in both synchronous and asynchronous stream modules.

If you use RemoteGraph, also upgrade langgraph to version 1.2.14 or later, which requires langgraph-sdk>=0.4.6.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) langgraph >= 1.2.3, < 1.2.14 1.2.14
Python (PyPI) langgraph-sdk >= 0.4.0, < 0.4.6 0.4.6

References

CVSS score 4.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weakness (CWE)
CWE-22
Platform
Python (PyPI)
Package
langgraph, langgraph-sdk
Disclosed
28.10.2026
Updated
28.10.2026 23:17

Sources and licenses

OSV / GitHub Advisory Database - GHSA-3fx2-cqw9-xr3c - CC BY 4.0

Vulnerability history: langgraph-sdk

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
06.2026 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 2

Disclosures per year

  1. 2026: 3
  1. LangGraph: Unencoded identifiers in LangGraph SDK v3 streaming can redirect authenticated GET requests this entry
    Medium · 4.3 CVE-2026-118667 >= 0.4.0, < 0.4.6 0.4.6
  2. Medium · 4.2 CVE-2026-48776 < 0.3.15 0.3.15

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.