CVE-2026-48776: LangGraph SDK: path traversal bypasses proxy-layer authz
MEDIUMThe LangGraph Python SDK (versions ≤0.3.14) embeds caller-supplied identifier values — thread IDs, assistant IDs, run IDs — directly into HTTP request paths without sanitization, allowing path traversal sequences to redirect requests to unintended LangGraph API resources. The risk is most acute in deployments where end-user input flows directly into SDK identifier parameters and authorization is enforced upstream at a reverse proxy, WAF, or edge gateway based on expected URL prefixes rather than the final delivered path — a common architectural pattern for LangGraph API deployments. With 2,739 downstream dependents, a package risk score of 77/100, and 53 prior CVEs in the same package, the ecosystem exposure is meaningful, though the CVSS AC:H rating (4.2 Medium) reflects that exploitation requires this specific deployment topology; there is no public exploit, no Nuclei template, and the vulnerability is not in CISA KEV. Teams running LangGraph API servers behind proxy-based authorization must upgrade to SDK version 0.3.15 immediately and validate all identifier inputs against a strict UUID format before passing them to the SDK.
What is the risk?
Medium risk (CVSS 4.2, AV:N/AC:H/PR:L). Exploitation requires a specific and verifiable deployment pattern: user-supplied identifiers forwarded to the SDK without validation, combined with upstream prefix-based authorization. In zero-trust environments where authorization decisions are enforced at the API server level rather than the proxy tier, this vulnerability is not exploitable. However, LangGraph's canonical deployment topology — API server behind a reverse proxy or cloud gateway with path-based routing rules — precisely matches the vulnerable pattern. The package's history (53 CVEs, OpenSSF score 6.4/10) suggests systemic security debt, warranting elevated scrutiny beyond this single CVE.
How does the attack unfold?
What systems are affected?
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Patch: upgrade langgraph SDK to version 0.3.15 or later — the fix applies sanitization to all identifier values before URL path construction.
-
Input validation: enforce strict UUID v4 format validation (
^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$) on all identifier parameters at the application boundary before passing to the SDK. -
Architecture audit: review whether your reverse proxy, WAF, or API gateway makes authorization decisions on the intended path or the final delivered path — if the former, this is your primary risk surface.
-
Detection: scan LangGraph API server access logs for requests containing
../,%2e%2e,%252e, or double-encoded variants in resource identifier fields. -
Scope reduction: if identifiers are generated server-side and never derived from untrusted input, document this as a compensating control while scheduling the upgrade.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-48776?
The LangGraph Python SDK (versions ≤0.3.14) embeds caller-supplied identifier values — thread IDs, assistant IDs, run IDs — directly into HTTP request paths without sanitization, allowing path traversal sequences to redirect requests to unintended LangGraph API resources. The risk is most acute in deployments where end-user input flows directly into SDK identifier parameters and authorization is enforced upstream at a reverse proxy, WAF, or edge gateway based on expected URL prefixes rather than the final delivered path — a common architectural pattern for LangGraph API deployments. With 2,739 downstream dependents, a package risk score of 77/100, and 53 prior CVEs in the same package, the ecosystem exposure is meaningful, though the CVSS AC:H rating (4.2 Medium) reflects that exploitation requires this specific deployment topology; there is no public exploit, no Nuclei template, and the vulnerability is not in CISA KEV. Teams running LangGraph API servers behind proxy-based authorization must upgrade to SDK version 0.3.15 immediately and validate all identifier inputs against a strict UUID format before passing them to the SDK.
Is CVE-2026-48776 actively exploited?
No confirmed active exploitation of CVE-2026-48776 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-48776?
1. Patch: upgrade langgraph SDK to version 0.3.15 or later — the fix applies sanitization to all identifier values before URL path construction. 2. Input validation: enforce strict UUID v4 format validation (`^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$`) on all identifier parameters at the application boundary before passing to the SDK. 3. Architecture audit: review whether your reverse proxy, WAF, or API gateway makes authorization decisions on the intended path or the final delivered path — if the former, this is your primary risk surface. 4. Detection: scan LangGraph API server access logs for requests containing `../`, `%2e%2e`, `%252e`, or double-encoded variants in resource identifier fields. 5. Scope reduction: if identifiers are generated server-side and never derived from untrusted input, document this as a compensating control while scheduling the upgrade.
What systems are affected by CVE-2026-48776?
This vulnerability affects the following AI/ML architecture patterns: Multi-tenant LangGraph API deployments, Agent frameworks with proxy-based authorization, LLM orchestration pipelines behind WAF or API gateways, AI applications with user-supplied resource identifiers.
What is the CVSS score for CVE-2026-48776?
CVE-2026-48776 has a CVSS v3.1 base score of 4.2 (MEDIUM).
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0049 Exploit Public-Facing Application AML.T0053 AI Agent Tool Invocation AML.T0107 Exploitation for Defense Evasion Compliance Controls Affected
What are the technical details?
Original Advisory
LangGraph Python SDK is used to connect to running LangGraph API servers, manage assistants, threads and stream runs from Python applications. Versions 0.3.14 and prior have unsafe URL path construction through unsanitized caller-supplied identifier values used in HTTP request paths for resource operations. Without sanitization of those values, identifiers that contain characters with special meaning in URL paths could cause the resulting request to address a different resource (and potentially a different resource type) than the SDK method's call site indicates. In deployments where the SDK receives identifier values that originate from untrusted sources, this could result in unintended access, modification, or deletion of resources beyond the calling user's authorization scope. This issue is most consequential in deployments that forward end-user-supplied values directly into SDK identifier parameters without first validating them against an expected format (such as a UUID), and rely on URL-prefix-based authorization at an upstream layer (reverse proxy, edge gateway, WAF), where the authorization decision is made on the SDK call's intended path rather than on the final delivered request path. The issue has been fixed in version 0.3.15.
Exploitation Scenario
In a multi-tenant SaaS platform using LangGraph to power per-customer AI assistants, a user submits a thread ID of `my-thread-id/../../other-customer-thread-id` through the application's chat API. The application forwards this value to the LangGraph Python SDK's thread runs endpoint without UUID validation. The SDK constructs the path `/threads/my-thread-id/../../other-customer-thread-id/runs`, which the LangGraph API server normalizes to `/other-customer-thread-id/runs`. The upstream reverse proxy had authorized the request because the user holds a valid session and the initial prefix matched their allowed thread namespace — it evaluated authorization on the intended path, not the traversed destination. The attacker reads the full conversation history of another tenant's AI assistant thread or injects a malicious run into that thread, escalating within the AI orchestration layer without ever triggering conventional IAM controls.
Weaknesses (CWE)
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE-863 Incorrect Authorization CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'): The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylis
- [Architecture and Design] For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N References
- github.com/langchain-ai/langgraph/releases/tag/sdk%3D%3D0.3.15 x_refsource_MISC
- github.com/langchain-ai/langgraph/security/advisories/GHSA-w39p-vh2g-g8g5 x_refsource_CONFIRM
Timeline
Related Vulnerabilities
CVE-2025-2828 10.0 LangChain RequestsToolkit: SSRF exposes cloud metadata
Same package: langchain CVE-2023-34540 9.8 LangChain: RCE via JiraAPIWrapper crafted input
Same package: langchain CVE-2023-29374 9.8 LangChain: RCE via prompt injection in LLMMathChain
Same package: langchain CVE-2023-34541 9.8 LangChain: RCE via unsafe load_prompt deserialization
Same package: langchain CVE-2023-36258 9.8 LangChain: unauthenticated RCE via code injection
Same package: langchain