CVE-2026-104873: Langgraph sdk Remote Code Execution Vulnerability
HIGHCVE-2026-104873 is a HIGH remote code execution vulnerability (CWE-863: Incorrect Authorization) affecting Langgraph sdk libraries in the PyPI ecosystem. The issue involves langgraph sdk custom auth silently ignores actions= on resource decorators. Remediation is available by upgrading affected packages to version 0.4.4.
CVE-2026-104873 at a Glance
How to Fix CVE-2026-104873
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.4.4
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-104873, 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.4.4), 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-104873 Affected Langgraph sdk Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
langgraph-sdk
|
PyPI |
≥ 0.1.45
< 0.4.4
|
0.4.4
|
References
Frequently Asked Questions
What is CVE-2026-104873?
Which Langgraph sdk versions are affected?
What version fixes CVE-2026-104873?
Is langgraph-sdk affected?
What CWE is associated with CVE-2026-104873?
How can I check PyPI dependencies for CVE-2026-104873?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fvww-7h3r-vfhp",
"modified" : "2026-10-05T22:49:35Z",
"published" : "2026-10-05T22:49:35Z",
"aliases" : [ "CVE-2026-104873" ],
"summary" : "LangGraph SDK custom auth silently ignores actions= on resource decorators",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n`langgraph-sdk` incorrectly applies the `actions=` argument on resource-scoped authorization decorators, including `@auth.on.threads`, `@auth.on.assistants`, and `@auth.on.crons`.\n\nIn affected versions, a decorator such as:\n\n```python\n@auth.on.threads(actions=[\"create\"])\nasync def allow_thread_create(ctx, value):\n return None\n```\nintended to register a handler for selected actions instead registers that handler for every action on the resource. Because the resource-wide handler is selected before broader fallback handlers, authorization checks implemented in those fallback handlers may not run.\n\nAn authenticated user may therefore be able to perform actions the application intended to deny, such as reading, updating, or deleting another user's resource. Exploitability and impact depend on the affected handler's behavior: deployments remain protected if that handler independently enforces the necessary action, ownership, or permission checks for every request it receives.\n\nOnly Python deployments using `actions=` on the affected resource-scoped decorators are affected.\n\n### Patches\n\n0.4.4\n\n### Workarounds\n\nNo.\n\n### References\n\nN/A",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "langgraph-sdk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.1.45"
}, {
"fixed" : "0.4.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.4.3"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-fvww-7h3r-vfhp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-104873"
}, {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langgraph/commit/5a77be5e8bec1600ad0a865638d88c1368497559"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/langchain-ai/langgraph"
}, {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langgraph/releases/tag/sdk==0.4.4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-05T22:49:35Z",
"nvd_published_at" : "2026-10-02T20:17:01Z"
}
}