VAITP Dataset

← Back to the dataset

CVE-2026-104873

Wildcard auth decorator ignores actions, letting users bypass checks on resources.

  • CVSS 7.6
  • CWE-863
  • Authentication, Authorization, and Session Management
  • Local

LangGraph Python SDK is used to connect to running LangGraph API servers, manage assistants, threads and stream runs from Python applications. From 0.1.45 until 0.4.4, the langgraph-sdk resource-scoped authorization decorators @auth.on.threads, @auth.on.assistants, and @auth.on.crons ignore the actions argument and register the selected handler for every action on the resource. Because that wildcard resource handler is selected before broader fallback handlers, an authenticated user may bypass fallback action, ownership, or permission checks and read, update, or delete another user's resource. Only Python deployments using actions on the affected decorators are vulnerable, and a deployment remains protected when the selected handler independently enforces all required checks for every action it receives. This issue is fixed in version 0.4.4.

CVSS base score
7.6
Published
2026-10-02
OWASP
A01 Broken Access Control
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Authentication, Authorization, and Session Management
Subcategory
Privilege Escalation
Accessibility scope
Local
Impact
Unauthorized Access
Affected component
langgraph-sdk
Fixed by upgrading
Yes

Solution

Upgrade the langgraph-sdk package to version 0.4.4 or later.

Vulnerable code sample

from langgraph_sdk import auth

# VULNERABLE: handler registered for all actions because actions argument is ignored
@auth.on.threads(actions=["read"])
def get_thread(thread_id: str, user):
    # Assume db returns thread owned by some user
    thread = db.fetch_thread(thread_id)  # placeholder
    return thread

Patched code sample

from langgraph_sdk import auth

# FIX: use correct singular action parameter so handler only applies to "read"
@auth.on.threads(action="read")
def get_thread(thread_id: str, user):
    thread = db.fetch_thread(thread_id)  # placeholder
    return thread

Published fix

Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.

  • Merge commit from fork (langchain-ai/langgraph)
    libs/sdk-py/langgraph_sdk/auth/__init__.py, libs/sdk-py/langgraph_sdk/auth/__init__.py · _ResourceOn.__call__#2, libs/sdk-py/langgraph_sdk/auth/__init__.py · _ResourceOn.__call__#3

Cite this entry

@misc{vaitp:cve2026104873,
  title        = {{Wildcard auth decorator ignores actions, letting users bypass checks on resources.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-104873},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-104873/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.