CVE Explorer
CVE-2025-68665
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-controlle
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"langchainjs","vendor":"langchain-ai","versions":[{"status":"affected","version":"@langchain/core >= 1.0.0, < 1.1.8"},{"status":"affected","version":"@langchain/core < 0.3.80"},{"status":"affected","version":"langchain >= 1.0.0, < 1.2.3"},{"status":"affected","version":"langchain < 0.3.37"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:a23a7948b7b6a94e131a94cd3c58a38eeee2b7c3a80fdd08bc78fd4b05dbecaf · sha256:58a8b9e9556b1b1d… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:a23a7948b7b6a94e131a94cd3c58a38eeee2b7c3a80fdd08bc78fd4b05dbecaf · sha256:58a8b9e9556b1b1d… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-502","description":"CWE-502: Deserialization of Untrusted Data","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a23a7948b7b6a94e131a94cd3c58a38eeee2b7c3a80fdd08bc78fd4b05dbecaf · sha256:58a8b9e9556b1b1d… · /containers/cna/problemTypes/0/descriptions/0
Source references
5 source assertions{"name":"https://github.com/langchain-ai/langchainjs/commit/e5063f9c6e9989ea067dfdff39262b9e7b6aba62","tags":["x_refsource_MISC"],"url":"https://github.com/langchain-ai/langchainjs/commit/e5063f9c6e9989ea067dfdff39262b9e7b6aba62"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a23a7948b7b6a94e131a94cd3c58a38eeee2b7c3a80fdd08bc78fd4b05dbecaf · sha256:58a8b9e9556b1b1d… · /containers/cna/references/1
{"name":"https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcore%401.1.8","tags":["x_refsource_MISC"],"url":"https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcore%401.1.8"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a23a7948b7b6a94e131a94cd3c58a38eeee2b7c3a80fdd08bc78fd4b05dbecaf · sha256:58a8b9e9556b1b1d… · /containers/cna/references/2
{"name":"https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.2.3","tags":["x_refsource_MISC"],"url":"https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.2.3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a23a7948b7b6a94e131a94cd3c58a38eeee2b7c3a80fdd08bc78fd4b05dbecaf · sha256:58a8b9e9556b1b1d… · /containers/cna/references/3
{"name":"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-r399-636x-v7f6","tags":["x_refsource_CONFIRM"],"url":"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-r399-636x-v7f6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a23a7948b7b6a94e131a94cd3c58a38eeee2b7c3a80fdd08bc78fd4b05dbecaf · sha256:58a8b9e9556b1b1d… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-r399-636x-v7f6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a23a7948b7b6a94e131a94cd3c58a38eeee2b7c3a80fdd08bc78fd4b05dbecaf · sha256:58a8b9e9556b1b1d… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.