CVE-2025-68665: langchain-ai langchainjs · Deserialization of Untrusted Data
Affects langchain-ai langchainjsSource CVE Database V5
Not known to be exploited · CVSS 8.6 High · fixed in 1.1.8 : patch langchain-ai langchainjs soon.
Data as of 3 Dec 2026, 18:36 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 59% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.1.8, 0.3.80, 1.2.3 +1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 23 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npm@langchain/corepkg:npm/%40langchain/coreOther threats | Affected
| Fixed in
|
npm@langchain/corepkg:npm/%40langchain/coreOther threats | Affected
| Fixed in
|
npmlangchainpkg:npm/langchainOther threats | Affected
| Fixed in
|
npmlangchainpkg:npm/langchainOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediately upgrade all LangChain JS dependencies to @langchain/core versions 0.3.80 or higher and langchain versions 0.3.37 or higher to apply the official patches.
- Audit all application code that serializes or deserializes JSON data involving LangChain objects, ensuring no untrusted user input can inject 'lc' keys or other internal markers.
- Implement strict input validation and sanitization on all user-supplied data before serialization to prevent injection of malicious structures.
- Employ runtime application self-protection (RASP) or similar monitoring to detect anomalous deserialization activities.
- Restrict network access to services exposing LangChain-based APIs to trusted sources only, reducing exposure to remote exploitation.
- Conduct penetration testing focused on deserialization attacks to verify the effectiveness of mitigations. 7.
Description
CVE-2025-68665 is a high-severity deserialization vulnerability in the LangChain JS framework affecting versions prior to 0.3.80/@langchain/core 1.1.8 and langchain 1.2.3. The flaw arises from improper handling of objects containing the 'lc' key during JSON serialization, allowing attacker-controlled data to be interpreted as legitimate LangChain objects during deserialization. This can lead to remote code execution or other malicious actions without requiring authentication or user interaction. The vulnerability impacts confidentiality but not integrity or availability directly.
References
- github.com/langchain-ai/langchainjs/security/advisories/GHSA-r399-636x-v7f6 (opens in a new tab)
- github.com/langchain-ai/langchainjs/commit/e5063f9c6e9989ea067dfdff39262b9e7b6aba62 (opens in a new tab)
- github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcore%401.1.8 (opens in a new tab)
- github.com/langchain-ai/langchainjs/releases/tag/langchain%401.2.3 (opens in a new tab)