langchain
1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
Upgrading langchain From 0.0.129 to 1.6.7
277 releases in betweennotes for 78
Reading releases, release notes and advisories…
Counted from 78 of 277 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking1.6.5
- Breaking1.2.34
Security
Fixes 2 advisories affecting 0.0.129
- Langchain Path Traversal vulnerabilitymoderate · GHSA-hc5w-c9f8-9cc4
- LangChain serialization injection vulnerability enables secret extractionhigh · GHSA-r399-636x-v7f6
- 1.2.3
Add security hardening for
load
Release by release
- Fixed
Mark tool messages that
humanInTheLoopMiddlewarecreates forrejectandresponddecisions withlc_source: "hitl_interrupt_decision"andlc_data: { decision }, and letaddNotificationMetadataaccept tool messages - Fixed
langchain: Make
ConfigurableModelnon-configurable whenconfigurableFieldsis omitted
- Fixed
- Fixed
Prevent a failed tool call or subagent from crashing the process when its
outputpromise is never consumed - Fixed
Apply a
Commandreturned fromwrapModelCallonce when outer middleware passes it through
- Fixed
- Breaking
Require Zod 4.6.6 or newer for installed dependencies to exclude versions affected by GHSA-mrhx-c7xc-m3w5. Zod v3 schemas remain supported through the bundled
zod/v3entry point. - New
langchain: Add model router and auto mode middleware
- Breaking
- New
langchain: Add
modelRefusalMiddleware
- New
- Fixed
modelRetryMiddlewarenow retries errors that are subclasses of a class listed inretryOn. Previously the array form matched only the exact constructor, soretryOn: [APIError]never retried aRateLimitError. This matchestoolRetryMiddleware. - Fixed
langchain: Preserve model errors propagated through middleware
- Fixed
- New
Add
tracePolicytocreateMiddleware, applied to the middleware's lifecycle hook runs. It only changes whatLangChainTracersends to LangSmith (useomitPayloadfrom@langchain/core/tracers/tracer_langchain). Requires@langchain/langgraph>= 1.6.1.
- New
- Fixed
langchain: humanInTheLoopMiddleware — execute approved, edited and auto-approved tool calls when other calls in the same interrupt are rejected, instead of dropping them without a ToolMessage (caused "400 No tool output found for function call" on subsequent model requests)
- Fixed
- New
Add a beta
OpenAIDecisionsrunnable with typed predicate, choice and score questions, plus model-routing and tool-risk agent middleware.
- New
37 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.