Skip to content

chore(deps): update dependency langgraph-sdk to v0.4.4 [security] - #2803

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-langgraph-sdk-vulnerability
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-langgraph-sdk-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
langgraph-sdk (source) 0.3.8 → 0.4.4 age adoption passing confidence

LangGraph SDK has unsafe URL path construction

CVE-2026-48776 / GHSA-w39p-vh2g-g8g5 / PYSEC-2026-2194 / PYSEC-2026-2575

More information

Details

Summary

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.

This issue is most consequential in deployments that:

  • forward end-user-supplied values directly into SDK identifier parameters without first validating them against an expected format (such as a UUID), and
  • 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.

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

Affected users / systems

You may be affected if you:

  • use langgraph-sdk (Python) to address resources by identifier, and
  • 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.

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

Impact
  • 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.
  • In deployments with prefix-based authorization at an upstream layer, the authorization decision and the final delivered request path may diverge.
  • Confidentiality: disclosure of resource content beyond the authorization scope of the calling user.
  • Integrity: modification or deletion of resources beyond the authorization scope of the calling user.
Patches / mitigation

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

Compatibility

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

Operational guidance
  • Validate identifier values (typically as UUIDs) at the boundary where untrusted input enters the application, before passing them to SDK methods.
  • 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.
LangSmith / hosted deployments note

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

First reported by: pucagit (CyStack).

Severity

  • CVSS Score: 4.2 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


LangGraph SDK has unsafe URL path construction

CVE-2026-48776 / GHSA-w39p-vh2g-g8g5 / PYSEC-2026-2194 / PYSEC-2026-2575

More information

Details

Summary

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.

This issue is most consequential in deployments that:

  • forward end-user-supplied values directly into SDK identifier parameters without first validating them against an expected format (such as a UUID), and
  • 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.

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

Affected users / systems

You may be affected if you:

  • use langgraph-sdk (Python) to address resources by identifier, and
  • 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.

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

Impact
  • 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.
  • In deployments with prefix-based authorization at an upstream layer, the authorization decision and the final delivered request path may diverge.
  • Confidentiality: disclosure of resource content beyond the authorization scope of the calling user.
  • Integrity: modification or deletion of resources beyond the authorization scope of the calling user.
Patches / mitigation

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

Compatibility

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

Operational guidance
  • Validate identifier values (typically as UUIDs) at the boundary where untrusted input enters the application, before passing them to SDK methods.
  • 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.
LangSmith / hosted deployments note

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

First reported by: pucagit (CyStack).

Severity

  • CVSS Score: 4.2 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

References

This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).


LangGraph SDK custom auth silently ignores actions= on resource decorators

CVE-2026-104873 / GHSA-fvww-7h3r-vfhp / PYSEC-2026-4240

More information

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

Severity

  • CVSS Score: 7.6 / 10 (High)
  • Vector String: 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

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


LangGraph SDK custom auth silently ignores actions= on resource decorators

CVE-2026-104873 / GHSA-fvww-7h3r-vfhp / PYSEC-2026-4240

More information

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

Severity

  • CVSS Score: 7.6 / 10 (High)
  • Vector String: 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

References

This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).


Release Notes

langchain-ai/langgraph (langgraph-sdk)

v0.4.4

Compare Source

Changes since 0.4.3

  • langgraph: release 0.4.4 (#​4704)
  • update for consistency
  • lint again
  • use list
  • lint + update
  • update
  • update
  • update
  • langgraph: fix drawing graph with root channel
  • langgraph: fix graph drawing for self-loops
  • Merge branch 'main' into clean
  • [Proposal] add gitmcp badge for simple LLM-accessible documentation (#​4502)
  • Change LG Cloud > Platform
  • Fix invalid channels error message (#​4357)
  • docs: remove unused annotation comments in readmes (#​4656)
  • docs: General language cleanup (#​4649)
  • [docs] LangGraph / LangGraph Platform docs updates (#​4479)
  • Port checkpointer/store fixtures in langgraph-prebuilt to idiomatic pattern (#​4629)
  • Extend all tests using InMemorySaver to use all available checkpointers (#​4627)
  • Implement update_state for functional api (#​4626)
  • More idiomatic sync/async checkpointer fixtures in pytest (#​4624)
  • More idiomatic sync/async store fixtures in pytest (#​4617)
  • Overload clear method to delete all when called without args
  • Limit depth
  • Extend all tests using InMemorySaver to use all available checkpointers
  • Implement update_state for functional api
  • Fix
  • More idiomatic sync/async checkpointer fixtures in pytest
  • Move to sep file
  • More idiomatic sync/async store fixtures in pytest
  • Lint
  • Lint
  • Move FileCache to sqlite package, add InMemoryCache
  • Add clear cache methods
  • Remove refresh
  • Add namespace to cache keys
  • Lint
  • Lint
  • Lint
  • Lint
  • Lint
  • Lint
  • Lint
  • Finish implementation, add tests
  • Lint
  • Lint
  • Accept default cache_policy for graph/entrypoint/pregel
  • Fix
  • Fix
  • Output cached writes
  • Lint
  • Rename
  • Fix type annotation
  • Fixes
  • Re-do with separate cache interface
  • WIP
  • Deferred Node (#​4269)
  • Start dev server externally (#​4604)

v0.4.3

Compare Source

Changes since 0.4.2

  • release: 0.4.3 (#​4592)
  • langgraph: use tuples for streamed message events in RemoteGraph (#​4589)
  • Fix remote streaming of subgraphs (#​4590)
  • Add a limit to Pregel.draw (#​4575)

v0.4.2

Compare Source

Changes since 0.4.1

  • 0.4.2 (#​4570)
  • update
  • langgraph: decouple name from assistant ID in RemoteGraph
  • prebuilt: switch to executing parallel tool calls via Send by default (#​4438)
  • fix for langgraph
  • docstring fixes for libs/langgraph
  • docs: update add_messages API ref (#​4495)
  • update other tests

v0.4.1

Compare Source

Removed
  • PrioritySettings.fairness_weight — removed. The server stores only
    priority and fairness_group on the thread; it ignores a
    fairness_weight and logs a warning. Remove it from your callback.
Changed
  • PrioritySettings.priority — now says -5 runs first and 5 runs last,
    matching how the server orders runs. 0.4.9 to 0.4.11 said the reverse, and
    their example gave premium users 3, which runs them after everyone at the
    default 0. Check any callback written from those docs.

v0.4.0

Compare Source

langgraph 0.4.0

Summary of Changes

  • Added improved support for interrupt handling in streaming modes, with interrupts now properly propagated in "values" stream mode #​4374
  • Enhanced interrupt resumption with namespace-specific resume values, allowing targeted resumption of specific interrupts #​4406
  • Fixed branch handling to properly process END nodes in graph visualization and execution #​4409
  • Fixed issue where empty Commands with resume maps would raise an error #​4444
  • Updated Python compatibility to allow future Python versions while maintaining 3.9+ support #​4416

Detailed Changes

langgraph.types.Interrupt
  • Added interrupt_id property that generates a unique ID for the interrupt based on its namespace #​4406
  • Updated ID generation to use | as a separator between namespace elements for better uniqueness #​4406
langgraph.types.StreamMode
  • Updated docstring to clarify that "values" mode emits all values including interrupts after each step #​4374
langgraph.types.StateSnapshot
  • Added interrupts field to track interrupts that occurred in a step and are pending resolution #​4406
  • Improved documentation for all fields in the class #​4406
langgraph.types.Command
  • Enhanced resume parameter to support mapping interrupt IDs to resume values #​4406
  • Improved documentation for the resume parameter #​4406
langgraph.pregel.Pregel
  • Improved invoke and ainvoke methods to properly collect and handle interrupts in streamed output #​4374
  • Enhanced interrupt emission to work in both "values" and "updates" stream modes #​4374
  • Modified state snapshot preparation to collect interrupts from tasks #​4406
langgraph.graph.branch.Writer
  • Updated signature to accept a boolean parameter indicating whether the operation is for static writes #​4409
  • Fixed branch handling to properly process END nodes #​4409
langgraph.pregel.loop.PregelLoop
  • Fixed Command handling to support empty Commands with resume maps #​4444
  • Added support for namespace-based resumption through CONFIG_KEY_RESUME_MAP #​4406
langgraph.pregel.draw
  • Improved graph visualization to correctly handle END nodes #​4409
  • Added add_edge utility function to prevent duplicate edges in graph visualization #​4409

v0.3.15

Compare Source

langgraph 0.3.15

Summary of Changes

  • Added more efficient channel availability checks through new is_available() method on all channel types #​3890
  • Simplified branch mechanism in StateGraph with unified channel naming #​3891
  • Improved performance in Pregel task creation and execution #​3893

Detailed Changes

langgraph.channels.base.BaseChannel
  • Added new is_available() method to check if a channel has values without having to catch exceptions #​3890
All Channel Types
  • Refactored all channel implementations to use a MISSING sentinel value instead of attribute errors for tracking empty state #​3890
  • Added efficient is_available() implementations to:
    • AnyValue
    • BinaryOperatorAggregate
    • DynamicBarrierValue
    • EphemeralValue
    • LastValue
    • NamedBarrierValue
    • Topic
    • UntrackedValue
langgraph.graph.state.StateGraph
  • Simplified branch mechanism by using a single universal channel pattern branch:to:{node} instead of complex channel names #​3891
  • Improved efficiency by creating a single branch channel for each node rather than one for each potential branch destination #​3891
langgraph.pregel.algo
  • Improved performance by adding dedicated checkpoint_null_version() and _triggers() helper functions #​3893
  • Enhanced task creation efficiency by using binascii.unhexlify instead of UUID parsing #​3893
  • Optimized memory usage with single tuple constant for push triggers instead of creating new lists #​3893
  • Updated to use the new channel is_available() method instead of exception handling #​3890
langgraph.pregel.io
  • Removed return_exception parameter from read_channel() as it's no longer needed with the new availability checking #​3890
  • Updated branch channel name handling to use the simplified naming convention #​3891
langgraph.types
  • Changed PregelExecutableTask.triggers type from list[str] to more flexible Sequence[str] for better performance #​3893

v0.3.14

Compare Source

langgraph 0.3.14

Summary of Changes

  • Fixed handling of resume values in nested graph structures, improving reliability when interrupting and resuming tasks across nested graphs (#​3888, #​3889)
  • Improved cascading of resume values from parent to child scratchpads, making interrupt/resume more robust in hierarchical contexts (#​3889)
  • Enhanced the representation of the Interrupt class by hiding the when field from display outputs (#​3889)

Detailed Changes

langgraph.types.PregelScratchpad
  • Redesigned how resume values are handled by replacing direct null_resume storage with a get_null_resume function that takes a consume parameter (#​3888)
  • Removed null_resume, _consume_null_resume properties, and the consume_null_resume() method, replacing them with a cleaner and more versatile get_null_resume(bool) callable (#​3888)
langgraph.pregel.algo.prepare_single_task
  • Added support for accessing and cascading resume values from parent scratchpads to child scratchpads, improving the handling of resumable interruptions in nested contexts (#​3889)
  • Modified _scratchpad function to take a config parameter, allowing it to access the parent scratchpad's resume values (#​3889)
langgraph.types.Interrupt
  • Improved the display representation of the Interrupt class by hiding the when field when printing instances (#​3889)
langgraph.pregel.loop.PregelLoop
  • Removed redundant code that manually propagated resume values from parent scratchpads, as this is now handled more elegantly through the cascading get_null_resume functionality (#​3889)

v0.3.13

Compare Source

langgraph 0.3.13

Summary of Changes

  • Improved graph visualization with parallel traversal of subgraphs and support for RemoteGraph instances (#​3879)
  • Enhanced interrupt handling with better support for multiple concurrent interrupts and more robust error management (#​3886)

Detailed Changes

langgraph.graph.graph.CompiledGraph
  • Significantly improved the async graph visualization by implementing parallel traversal of subgraphs using asyncio.gather() (#​3879)
  • Added support for RemoteGraph visualization in both sync and async methods (#​3879)
  • Refactored code to extract common graph drawing logic into a new _draw_graph() method to reduce duplication (#​3879)
langgraph.pregel.loop.PregelLoop
  • Fixed interrupt emission to prevent duplicate events in the loop execution (#​3886)
  • Improved handling of sequence vs single interrupts to ensure proper propagation (#​3886)
langgraph.pregel.runner.PregelRunner
  • Enhanced handling of multiple concurrent interrupts by collecting and combining them into a single interrupt (#​3886)
  • Optimized the storage of interrupts in checkpoints (#​3886)
langgraph.pregel.debug
  • Fixed the debug visualization to properly handle interrupts that can be either single values or sequences (#​3886)
langgraph.pregel.io
  • Made task ID validation more robust by catching any exception during UUID parsing instead of just ValueError (#​3886)

v0.3.12

Compare Source

langgraph 0.3.12

Summary of Changes

  • Fixed an error handling issue in StateGraph.add_node to catch NameError exceptions

Detailed Changes

langgraph.graph.state.StateGraph
  • Fixed a bug in the add_node method by adding NameError to the list of caught exceptions, ensuring more robust error handling when processing node destinations

v0.3.11

Compare Source

langgraph 0.3.11

Summary of Changes

  • Added pycryptodome as a development dependency for cryptographic functionality #​3852

Detailed Changes

This release only adds a development dependency (pycryptodome) and does not include any changes to the library's public API or functionality.

v0.3.10

langgraph 0.3.10

Summary of Changes

  • Added a new SchemaCoercionMapper class to efficiently handle schema coercion with caching (#​3806)
  • Improved how Pydantic models are handled in state updates, respecting field set values (#​3839)
  • Enhanced PregelTask to better handle return values and results (#​3839)
  • Simplified channel writes by removing required channel validation (#​3839)
  • Added environment variable control for recursion limit via LANGGRAPH_DEFAULT_RECURSION_LIMIT (#​3812, #​3813)

Detailed Changes

langgraph.graph.schema_utils.SchemaCoercionMapper
  • Added a new utility class for efficiently coercing data to schemas
  • Implements caching using weakrefs to improve performance
  • Supports both Pydantic v1 and v2 models
  • Handles nested structures like lists, dicts, tuples and unions
langgraph.graph.state.StateGraph
  • Updated state coercion to use the new SchemaCoercionMapper
  • Improved handling of Pydantic models for state updates
  • Simplified formatting and structure of conditional code
langgraph.pregel.write.ChannelWrite
  • Removed the require_at_least_one_of parameter and validation logic
  • Made channel write operations more permissive, simplifying usage
langgraph.types.PregelTask
  • Updated result field to accept Any type instead of only dictionaries
  • This allows for more flexible return values from tasks
langgraph.pregel.debug
  • Enhanced map_debug_task_results to include RETURN values in results
  • Refactored tasks_w_writes for better handling of task results
  • Improved handling of return values in task output
Configuration
  • Added support for configuring recursion limit via environment variable
  • Set LANGGRAPH_DEFAULT_RECURSION_LIMIT to control recursion depth (default: 25)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/pypi-langgraph-sdk-vulnerability branch from b1e6ffd to cb7cc70 Compare November 16, 2026 21:47

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

0 participants