CVE-2026-48776: Langgraph sdk LangGraph SDK Has Unsafe URL Vulnerability
MODERATECVE-2026-48776 is a MODERATE (CVSS 4.2) langgraph sdk has unsafe url vulnerability (CWE-863: Incorrect Authorization) affecting Langgraph sdk libraries in the PyPI ecosystem. The issue involves langgraph sdk has unsafe url path construction. Remediation is available by upgrading affected packages to version 0.3.15.
CVE-2026-48776 at a Glance
Security Impact
CVSS: 4.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2026-48776
To remediate this vulnerability, upgrade all affected Langgraph sdk dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install langgraph-sdk>=0.3.15
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show langgraph-sdk
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-48776, inspect your installed packages using pip:
pip show langgraph-sdk
Analyze the terminal output to locate any version of Langgraph sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.15), your application is affected.
Note: The pip show langgraph-sdk command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Langgraph sdk, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-48776 Affected Langgraph sdk Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
langgraph-sdk
|
PyPI |
< 0.3.15
|
0.3.15
|
References
Frequently Asked Questions
What is CVE-2026-48776?
Which Langgraph sdk versions are affected?
What version fixes CVE-2026-48776?
Is langgraph-sdk affected?
What is the CVSS score of CVE-2026-48776?
What CWE is associated with CVE-2026-48776?
How can I check PyPI dependencies for CVE-2026-48776?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w39p-vh2g-g8g5",
"modified" : "2026-07-21T15:03:08Z",
"published" : "2026-06-25T18:32:35Z",
"aliases" : [ "CVE-2026-48776" ],
"summary" : "LangGraph SDK has unsafe URL path construction",
"details" : "## Summary\n\n`langgraph-sdk` constructs HTTP request paths for resource operations by interpolating caller-supplied identifier values into URL templates. 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.\n\nThis issue is most consequential in deployments that:\n\n- forward end-user-supplied values directly into SDK identifier parameters without first validating them against an expected format (such as a UUID), and\n- 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.\n\nThere have no evidence of this behavior being triggered in the wild. This change is intended to reduce the surface available when caller-supplied identifier values originate from untrusted sources.\n\n## Affected users / systems\n\nYou may be affected if you:\n\n- use `langgraph-sdk` (Python) to address resources by identifier, and\n- pass identifier values into SDK methods that originate from end-user input, untrusted third-party callers, or any source that does not validate identifier format before the SDK call.\n\nApplications that validate identifier values (for example, by parsing them as UUIDs and rejecting anything that does not parse) before passing them to SDK methods are not affected. Validated UUIDs round-trip through the SDK request path unchanged.\n\n## Impact\n\n- Potential **unintended access, modification, or deletion** of resources via SDK methods called for a different resource type, when caller-supplied identifier values are not validated.\n- In deployments with prefix-based authorization at an upstream layer, the authorization decision and the final delivered request path may diverge.\n- Confidentiality: disclosure of resource content beyond the authorization scope of the calling user.\n- Integrity: modification or deletion of resources beyond the authorization scope of the calling user.\n\n## Patches / mitigation\n\nThe SDK now applies path-segment encoding to identifier values before they are interpolated into request URL templates. After this change, identifier values that contain characters with special meaning in URL paths are transmitted as encoded byte sequences and routed to the resource the SDK method's call site indicates.\n\n## Compatibility\n\nIdentifier values that match the standard UUID format, or any other format that contains only characters safe to transmit unencoded in URL path segments, round-trip through the SDK request path unchanged. Applications that already validate identifier inputs see no behavioral change.\n\n## Operational guidance\n\n- Validate identifier values (typically as UUIDs) at the boundary where untrusted input enters the application, before passing them to SDK methods.\n- For deployments relying on URL-prefix-based authorization upstream of LangGraph, prefer authorization at the LangGraph server layer or on parsed-and-validated request paths rather than on raw URL prefixes.\n\n## LangSmith / hosted deployments note\n\nThis issue affects the SDK that runs in caller applications. The LangGraph server runtime, including LangSmith-hosted deployments, receives ordinary HTTP requests on documented routes and is not itself affected by this issue. Applications that consume LangSmith-hosted services via `langgraph-sdk` and pass untrusted identifier values to SDK methods should upgrade.\n\nFirst reported by: pucagit (CyStack).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "langgraph-sdk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.15"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-w39p-vh2g-g8g5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-48776"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-w39p-vh2g-g8g5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/langchain-ai/langgraph"
}, {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langgraph/releases/tag/sdk%3D%3D0.3.15"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/langgraph-sdk/PYSEC-2026-2575.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/langgraph/PYSEC-2026-2194.yaml"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/langgraph-sdk"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-25T18:32:35Z",
"nvd_published_at" : "2026-06-17T10:55:15Z"
}
}