CVE-2025-68664

LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs

HIGH
8.2
CVSS Score
Published: December 23, 2025 at 10:47 PM UTC
Updated: October 19, 2026 at 10:10 PM UTC
2 products affected across 2 vendorsLangchain CoreLangChain

Using langchain by langchain-ai?

Get instant alerts when new vulnerabilities affect langchain - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.2
Exploit prediction
EPSS 43%
SSVC
PoC

Description

LangChain is a framework for building agents and LLM-powered applications. Prior to versions 0.3.81 and 1.2.5, a serialization injection vulnerability exists in LangChain's dumps() and dumpd() functions. The functions do not escape dictionaries with 'lc' keys when serializing free-form dictionaries. The 'lc' key is used internally by LangChain to mark serialized objects. When user-controlled data contains this key structure, it is treated as a legitimate LangChain object during deserialization rather than plain user data. This issue has been patched in versions 0.3.81 and 1.2.5.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.3.811.0.0 ≤ v < 1.2.5
v < 0.3.81
Affected range stops below 0.3.81, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.2.5, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-502

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card