Skip to content

AAK-MCP-LANGGRAPHSDK-CVE-2026-104873-001: LangGraph SDK 0.1.45 to 0.4.3: resource-scoped auth decorators ignore actions

Severity
HIGH
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
LangGraphSdkAuthActionsIgnored

What it detects

langgraph-sdk (PyPI) supplies the custom-auth decorators a LangGraph server deployment uses to authorize access to threads, assistants and crons. From 0.1.45 until 0.4.4, @auth.on.threads, @auth.on.assistants and @auth.on.crons accepted an actions argument and registered the handler for every action on the resource anyway. That wildcard handler is chosen before broader fallback handlers, so an authenticated user can get past fallback action, ownership or permission checks and read, update or delete another user's thread, assistant or cron (CVE-2026-104873, CVSS 4.0 7.6, GHSA-fvww-7h3r-vfhp). Only a Python deployment that passes actions to one of those decorators is exposed, and one whose handler checks every action it receives stays protected. 0.4.4 registers the handler for the named actions only.

How to fix

Upgrade langgraph-sdk to 0.4.4 or later and pin it. Until then, make every handler registered with actions enforce the checks for all actions on its resource, or register it through @auth.on(resources=..., actions=...) or a per-action decorator such as @auth.on.threads.create, which honor the action.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-LANGGRAPHSDK-CVE-2026-104873-001

Limitations

Reports a reference that names the PyPI package langgraph-sdk from 0.1.45 up to 0.4.4: a requirements, pyproject or lockfile entry, or the package in an MCP config, where an unpinned reference is reported. It reads the version, not the auth handlers, so a project that uses the SDK only as a client, or never passes actions to these decorators, is reported without being exposed. The JavaScript @langchain/langgraph-sdk is a different package and is not read. A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-LANGGRAPHSDK-CVE-2026-104873-001.md: the page then shows that text, with the registry reference appended under it.