{"cve":"CVE-2025-68665","nvd":{"published":"2025-12-23T23:15:45.097","modified":"2026-10-19T22:10:00.130","status":"Analyzed","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","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1},"cwes":["CWE-502"],"references":["https://github.com/langchain-ai/langchainjs/commit/e5063f9c6e9989ea067dfdff39262b9e7b6aba62","https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcore%401.1.8","https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.2.3","https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-r399-636x-v7f6","https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-r399-636x-v7f6"],"products":["langchain:langchain.js","langchain:langchain\\/core"],"source":"nvd","synced_at":"2026-10-21T03:43:09.190223697+00:00"},"epss":{"cve":"CVE-2025-68665","score":0.00793,"percentile":0.56086,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-r399-636x-v7f6","url":"https://osv.dev/vulnerability/GHSA-r399-636x-v7f6","summary":"LangChain serialization injection vulnerability enables secret extraction","modified":"2026-09-10T03:50:58.820101156Z","packages":[{"ecosystem":"npm","name":"@langchain/core","purl":"pkg:npm/%40langchain/core","ranges":[">=1.0.0 <1.1.8"],"fixed":["1.1.8"]},{"ecosystem":"npm","name":"@langchain/core","purl":"pkg:npm/%40langchain/core","ranges":["<0.3.80"],"fixed":["0.3.80"]},{"ecosystem":"npm","name":"langchain","purl":"pkg:npm/langchain","ranges":[">=1.0.0 <1.2.3"],"fixed":["1.2.3"]},{"ecosystem":"npm","name":"langchain","purl":"pkg:npm/langchain","ranges":["<0.3.37"],"fixed":["0.3.37"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}