CVE-2025-68665
December 23, 2025
LangChain is a framework for building LLM-powered applications. Prior to @langchain/core versions 0.3.80 and 1.1.8, and prior to langchain versions 0.3.37 and 1.2.3, a serialization injection vulnerability exists in LangChain JS's toJSON() method (and subsequently when string-ifying objects using JSON.stringify(). The method did not escape objects with 'lc' keys when serializing free-form data in kwargs. 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 @langchain/core versions 0.3.80 and 1.1.8, and langchain versions 0.3.37 and 1.2.3
Affected Packages
https://github.com/langchain-ai/langchainjs.git (GITHUB):
Affected version(s) >=langchain@1.0.5 <langchain@1.2.3Fix Suggestion:
Update to version langchain@1.2.3https://github.com/langchain-ai/langchainjs.git (GITHUB):
Affected version(s) >=@langchain/core@1.1.1 <@langchain/core@1.1.8Fix Suggestion:
Update to version @langchain/core@1.1.8@langchain/core (NPM):
Affected version(s) >=1.0.0 <1.1.8Fix Suggestion:
Update to version 1.1.8langchain (NPM):
Affected version(s) >=0.0.1 <0.3.37Fix Suggestion:
Update to version 0.3.37langchain (NPM):
Affected version(s) >=1.0.0 <1.2.3Fix Suggestion:
Update to version 1.2.3@langchain/core (NPM):
Affected version(s) >=0.0.0 <0.3.80Fix Suggestion:
Update to version 0.3.80Related ResourcesĀ (6)
Do you need more information?
Contact UsCVSS 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
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.6
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Deserialization of Untrusted Data
EPSS
Base Score:
0.04