CVE-2025-68665
CVE-2025-68665 — LangChain serialization injection vulnerability enables secret extraction
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
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
8.6
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 8.6 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-502
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /core.
References
4 on the record
- github.com/langchain-ai/langchainjs/security/advisories/GHSA-r399-636x-v7f6
x_refsource_CONFIRM
- github.com/langchain-ai/langchainjs/commit/e5063f9c6e9989ea067dfdff39262b9e7b6aba62
x_refsource_MISC
- github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcore%401.1.8
x_refsource_MISC
- github.com/langchain-ai/langchainjs/releases/tag/langchain%401.2.3
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-20131 Cisco Secure Firewall Management Center Software Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-55182 Meta React Server Components Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2021-44228 Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpointsCVSS 10.0 · CISA KEV
- CVE-2026-115731 Report Deserialization Code ExecutionCVSS 9.9 · CISA KEV
- CVE-2025-24016 Wazuh Server Deserialization of Untrusted Data VulnerabilityCVSS 9.9 · CISA KEV
- CVE-2026-131914 Deserialization of untrusted data in CodePlex AntiCSRFCVSS 9.8 · CISA KEV
Elsewhere on this site
- Langchain Aievery CVE for this vendor
- CWE-502other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.