CVE-2025-68664

HIGH CVSS 3.1: 8.2 EPSS 42.9%
Updated Oct 20, 2026
Langchain
Parameter Value
CVSS 8.2 (HIGH)
Affected Versions 1.0.0 — 1.2.5
Fixed In 0.3.81
Type CWE-502 (Deserialization of Untrusted Data)
Vendor Langchain
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 2

Configuration From (including) Up to (excluding)
Langchain Langchain_Core
cpe:2.3:a:langchain:langchain_core:*:*:*:*:*:python:*:*
— 0.3.81
Langchain Langchain_Core
cpe:2.3:a:langchain:langchain_core:*:*:*:*:*:python:*:*
1.0.0 1.2.5