CVE-2025-68665 in Langchain.Js and 1 more product
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(). T...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Langchain | Langchain.Js | < 0.3.37 ≥ 1.0.0, < 1.2.3 |
| Langchain | Langchain/Core | < 0.3.80 ≥ 1.0.0, < 1.1.8 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-68665 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-030366-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| Published | 2025-12-23 |
| Last modified | 2026-10-19 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-502: Deserialization of Untrusted Data
Software deserializes untrusted data without validation, allowing crafted objects to execute arbitrary code.
Related attack patterns (CAPEC)
CAPEC-586 Object Injection via CWE-502
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A serialization injection vulnerability exists in LangChain JS's toJSON() method prior to specific versions, allowing for potential code execution.
An attacker could exploit this vulnerability by injecting malicious objects with 'lc' keys into the serialization process, leading to arbitrary code execution when the serialized data is deserialized.
Questions
What is CVE-2025-68665?
A serialization injection vulnerability exists in LangChain JS's toJSON() method prior to specific versions, allowing for potential code execution.
What is the CVSS score for CVE-2025-68665?
CVE-2025-68665 has CVSS 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.9%.
Is CVE-2025-68665 actively exploited?
No confirmed active exploitation of CVE-2025-68665 as of 2026-10-25.
How do I remediate CVE-2025-68665?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2025-68665?
CVE-2025-68665 affects Langchain Langchain.Js, Langchain/Core.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Langchain","product":"Langchain.Js","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.