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: 2025-12-23 Last update: 2026-01-13 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-68665 is rated Moderate Risk (41.6/100): CVSS High severity, with low exploitation likelihood (EPSS 0.07%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-68665

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-22 0.04% 0.07% +0.02%
2 2026-05-21 0.06% 0.04% -0.02%
3 2026-04-24 0.06%

Full EPSS history (6 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-68665

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.6 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 4.0 [email protected]
9.1 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 5.2 [email protected]

Weakness enumeration for CVE-2025-68665

GitHub Security Advisory for CVE-2025-68665

GHSA-r399-636x-v7f6 · Severity: high · Ecosystem: npm — LangChain serialization injection vulnerability enables secret extraction

OS Trackers for CVE-2025-68665

vendor priority summary link
redhat high https://access.redhat.com/security/cve/CVE-2025-68665

Affected software / configurations for CVE-2025-68665

Vendor Product Version Raw CPE
langchain langchain.js < 0.3.37 cpe:2.3:a:langchain:langchain.js:*:*:*:*:*:*:*:*
langchain langchain.js >= 1.0.0, < 1.2.3 cpe:2.3:a:langchain:langchain.js:*:*:*:*:*:*:*:*
langchain langchain\/core < 0.3.80 cpe:2.3:a:langchain:langchain\/core:*:*:*:*:*:node.js:*:*
langchain langchain\/core >= 1.0.0, < 1.1.8 cpe:2.3:a:langchain:langchain\/core:*:*:*:*:*:node.js:*:*

References for CVE-2025-68665

cvelogic Threat Intelligence