Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2025-68664
December 23, 2025
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 Packages
langchain-core (CONDA):
Affected version(s) >=0.0.10 <0.3.81
Fix Suggestion:
Update to version 0.3.81
https://github.com/langchain-ai/langchain.git (GITHUB):
Affected version(s) >=langchain-core==1.0.0 <langchain-core==1.2.5
Fix Suggestion:
Update to version langchain-core==1.2.5
https://github.com/langchain-ai/langchain.git (GITHUB):
Affected version(s) >=langchain-core==0.1.47 <langchain-core==0.3.81
Fix Suggestion:
Update to version langchain-core==0.3.81
langchain-core (PYTHON):
Affected version(s) >=0.0.1 <0.3.81
Fix Suggestion:
Update to version 0.3.81
langchain-core (PYTHON):
Affected version(s) >=1.0.0 <1.2.5
Fix Suggestion:
Update to version 1.2.5
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.2
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Deserialization of Untrusted Data
EPSS
Base Score:
0.04