LangChain Trial

Overview

LangChain is an open-source, MIT-licensed framework for building LLM applications and agents, with pre-built agent architectures and integrations for effectively any model or tool (LangChain). LangChain 1.0 and LangGraph 1.0 shipped on 22 October 2025, refocusing langchain on the core agent loop with middleware for customization, and positioning LangGraph as the lower-level runtime for highly controllable, long-running agents (LangChain and LangGraph 1.0). Both now follow semantic versioning, with breaking public-API changes reserved for a future 2.0 and patches shipping up to a few times per week (release policy). Around the open-source core sit Deep Agents as an agent harness and LangSmith for observability, evals, sandboxes, and managed runtimes (Managed Deep Agents public beta).

We are moving LangChain from adopt to trial. The technical value proposition is intact and the ecosystem is still the default place many teams start. What changed is the security evidence. A coordinated disclosure by Cyera on 27 March 2026 ("LangDrained") identified three high- and critical-severity vulnerabilities across LangChain and LangGraph — serialization injection (CVE-2025-68664, CVSS 9.3), path traversal (CVE-2026-34070, CVSS 7.5), and SQL injection in the SQLite checkpointer (CVE-2025-67644, CVSS 7.3) — each exposing a different class of enterprise data: filesystem contents, API credentials, and stored conversation histories (Cyera research, TechRadar). CSA's research note frames these as compounding a pattern of serious flaws documented through 2024 and 2025, affecting packages downloaded more than 84 million times in the most recent reporting week (CSA research note, CSA PDF).

The patches are real but the class of defect recurred: in May 2026 a further high-severity advisory covered unsafe deserialization of attacker-controlled objects through overly broad load() allowlists, affecting langchain 0.3.x through 0.3.84 and 1.x through 1.3.2 (GHSA-pjwx-r37v-7724). Trial, not hold: keep building on LangChain, but only inside explicit guardrails around versions, document loaders, serialization, checkpoint stores, and sandboxed tool execution — and only where a team has capacity to track advisories and ship patch upgrades quickly.

Adoption Signals

  • LangChain is still the most widely adopted LLM orchestration library by PyPI install count, with an integrations catalog covering hundreds of vector stores, model providers, document loaders, and tool connectors (practitioner review).
  • Agents are majority-deployed: 57.3% of respondents to LangChain's State of Agent Engineering survey report agents in production, with another 30.4% in progress, and quality — not cost — is now the top barrier at 32% (State of Agent Engineering, analysis).
  • Rippling built a production multi-agent layer serving millions of users in roughly six months on Deep Agents and LangSmith, using a supervisor agent plus specialized read, RAG, and action agents, with layered evals and a semi-automated self-healing loop (case study).
  • Isolation and eval tooling is maturing: Harbor is wired directly into Deep Agents, LangSmith Sandboxes, and LangSmith Observability so agents run in clean, reproducible, isolated environments with a deterministic check at the end (Harbor x LangChain).
  • Governance features teams ask for first are arriving, though several are still beta: LLM Gateway (cost controls, rate limits, model fallbacks, sensitive data handling), Managed Deep Agents, and Bring Your Own Cloud on AWS (August 2026 newsletter).

Risks

  • Deserialization is a recurring, critical-severity failure class. CVE-2025-68664 (CVSS 9.3 per the GitHub CNA, 8.2 per NVD) enabled deserialization abuse, and a separate May 2026 advisory found legacy runtime code paths still deserializing attacker-controlled objects via broad load() allowlists up to 1.3.2 and 0.3.84 (CSA PDF, GHSA-pjwx-r37v-7724).
  • Partial patches create false confidence. langchain-core 0.3.81 and 1.2.5 fixed the serialization injection but not the path traversal; only 1.2.22 or later patches all three, and langgraph-checkpoint-sqlite needs 3.0.1 or later (Cyera research).
  • Checkpoint and memory stores are now a data-exfiltration target, not just a cost line. The SQLite checkpointer SQL injection exposed database contents including stored conversation histories, and researchers warn the risk ripples through downstream libraries that embed these components (TechRadar).
  • Agent harnesses hand agents a whole computer. Modern harnesses let agents read files, execute scripts, and run code, so untrusted model output reaching a tool must be treated as untrusted input and executed in an isolated, reproducible environment (Harbor x LangChain, TechRadar).
  • Abstraction weight and drift. Some production teams are migrating to provider SDKs or direct API calls as model vendors absorb the framework's core abstractions, and practitioners cite dependency weight and debugging friction plus unbounded-loop and memory-growth failure modes in RAG pipelines (migration write-up, is LangChain bad?, RAG FMEA).
  • Complexity as a security property. Independent analysis has long noted that LangChain's emphasis on modularity and breadth of integrations introduces complexity and potential security concerns, alongside a steep learning curve (Turing Institute review).

Pros & Cons

Advantages

  • LangChain remains the broadest on-ramp for agent work: an MIT-licensed open-source framework with pre-built agent architectures and integrations for effectively any model or tool, and it is still the most widely installed LLM orchestration library by PyPI install count.
  • The 1.0 releases of LangChain and LangGraph adopted semantic versioning with a commitment to no breaking public-API changes before 2.0, which makes version pinning and patch uptake far more predictable than the v0.x era.
  • The surrounding product stack is genuinely productive at scale: Rippling shipped a multi-agent, production AI layer on Deep Agents and LangSmith in roughly six months using traces, layered evals, and a semi-automated self-healing loop.

Disadvantages

  • A coordinated March 2026 disclosure documented serialization injection (CVE-2025-68664, CVSS 9.3), path traversal (CVE-2026-34070, CVSS 7.5), and SQL injection in the SQLite checkpointer (CVE-2025-67644, CVSS 7.3), exposing filesystem data, API credentials, and conversation history in frameworks downloaded more than 84 million times in a single reporting week.
  • A further high-severity advisory in May 2026 showed overly broad load() allowlists still deserializing attacker-controlled objects across langchain 0.3.x up to 0.3.84 and 1.x up to 1.3.2, so a single patch round is not sufficient evidence that the class of flaw is closed.
  • Some production teams report the framework's abstractions no longer earn their weight against direct provider SDKs, and practitioner write-ups cite debugging friction, dependency weight, and unbounded-loop or memory-growth failure modes in RAG pipelines.

Recommendation

Trial LangChain and LangGraph for new agentic services behind four non-negotiable guardrails. First, versions: pin and enforce langchain-core 1.2.22 or later and langgraph-checkpoint-sqlite 3.0.1 or later as a floor, treat langchain 1.3.3 / 0.3.85 as the minimum for the load() allowlist fix, and wire advisory alerts into the same pipeline that gates other dependencies (Cyera research, GHSA-pjwx-r37v-7724). Second, serialization and loaders: forbid deserializing objects that originate from user input, model output, or third-party stores, and inventory which document loaders and downstream libraries transitively pull in affected components (CSA research note). Third, isolation: run tool-executing and code-executing agents in dedicated sandboxes rather than in the service process, using the Harbor / LangSmith Sandboxes path or your own equivalent (Harbor x LangChain). Fourth, data: scope checkpoint and memory backends with least-privilege credentials, retention limits, and no shared secrets, on the assumption that a checkpoint store is a disclosure surface.

Existing production systems on LangChain do not need to be rewritten. Patch to the fixed versions, audit configurations, and treat LLM output as untrusted input reaching any file, shell, or SQL boundary (TechRadar). Keep the parts that have earned their place: LangSmith tracing and layered evals in CI gates, which the Rippling deployment shows can carry a large multi-agent system, and semantic-versioning discipline now that 1.x promises no breaking public-API changes before 2.0 (case study, release policy).

For new work, right-size deliberately. Quality, not cost, is the reported production killer, so invest in evals before adding orchestration layers (State of Agent Engineering). Thin, one-shot classification or extraction endpoints should stay on direct SDK calls; reach for LangGraph when you need durable state, branching, or human interrupts. Beta-stage governance features such as LLM Gateway and Managed Deep Agents are worth piloting for cost controls and sensitive-data handling but should not yet be single points of dependency (August 2026 newsletter). Reassess for a return to adopt next quarter if the advisory cadence stabilizes and no new critical deserialization or path-traversal class appears.

Sources

Overview

LangChain is an open-source framework and product ecosystem for building LLM applications, agents, and retrieval pipelines. Core packages cover model IO, tool calling, structured outputs, memory, and multi-agent patterns, while LangGraph adds explicit graph orchestration and LangSmith adds observability and evaluation (LangChain documentation).

Adopt as your default application framework when multiple teams ship agents or RAG services and need shared patterns for tracing, evals, and integrations. Keep thin services thin: do not wrap one-shot classification endpoints in full graph runtimes without a durability or branching requirement.

Adoption Signals

  • LangGraph persistence and durable execution docs are referenced in enterprise agent runbooks.
  • LangSmith datasets and online evals appear in CI gates for customer-facing copilots.
  • Integration providers cover major model hosts, vector databases, and enterprise auth patterns.
  • Community packages and LangChain Academy lower onboarding friction for new squads.

Risks

  • Implicit retries and streaming defaults can amplify token spend without budgets per thread.
  • Tool permissions must be enforced outside the framework; LangChain does not replace authZ design.
  • Checkpoint stores can grow quickly on chatty agents without retention policies.
  • Vendor concentration if LangSmith becomes the only approved observability path.

Pros & Cons

Advantages

  • Large integration catalog for models, vector stores, retrievers, and tools reduces glue code in agent and RAG systems.
  • LangGraph provides production-oriented graph orchestration with persistence, interrupts, and durable execution patterns.
  • LangSmith closes the loop for tracing, evaluation, datasets, and deployment when teams operationalize agents.

Disadvantages

  • Abstraction breadth can hide failure modes until production load exposes latency, cost, and state bugs.
  • Rapid API evolution requires pinning versions and migration planning across LangChain, LangGraph, and LangSmith.
  • Not every workload needs the stack; simple API calls should stay thin without framework overhead.

Recommendation

Adopt LangChain plus LangGraph for agentic services that need state, branching, or human interrupts, and LangSmith for tracing and evals. Publish internal templates for tool auth, checkpoint backends, and cost caps. Revisit quarterly whether new services can stay on lightweight SDK calls instead.

Sources