PYSEC-2026-4240

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/langgraph-sdk/PYSEC-2026-4240.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-4240
Aliases
Published
2026-10-15T10:22:44Z
Modified
2026-10-15T14:45:12Z
Severity
  • 7.6 (High) CVSS_V4 - 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 CVSS Calculator
Summary
LangGraph SDK custom auth silently ignores actions= on resource decorators
Details

Impact

What kind of vulnerability is it? Who is impacted? langgraph-sdk incorrectly applies the actions= argument on resource-scoped authorization decorators, including @auth.on.threads, @auth.on.assistants, and @auth.on.crons.

In affected versions, a decorator such as:

@auth.on.threads(actions=["create"])
async def allow_thread_create(ctx, value):
    return None

intended 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.

An 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.

Only Python deployments using actions= on the affected resource-scoped decorators are affected.

Patches

0.4.4

Workarounds

No.

References

N/A

References

Affected packages

PyPI / langgraph-sdk

Package

Name
langgraph-sdk
View open source insights on deps.dev
Purl
pkg:pypi/langgraph-sdk

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.1.45
Fixed
0.4.4

Affected versions

0.*
0.1.45
0.1.46
0.1.47
0.1.48
0.1.50
0.1.51
0.1.53
0.1.55
0.1.56
0.1.57
0.1.58
0.1.59
0.1.60
0.1.61
0.1.62
0.1.63
0.1.64
0.1.65
0.1.66
0.1.69
0.1.70
0.1.71
0.1.72
0.1.73
0.1.74
0.2.0a1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.2.10
0.2.12
0.2.14
0.2.15
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.3.6
0.3.7
0.3.8
0.3.9
0.3.10
0.3.11
0.3.12
0.3.13
0.3.14
0.3.15
0.4.0
0.4.1
0.4.2
0.4.3

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/langgraph-sdk/PYSEC-2026-4240.yaml"