Skip to main content
VulnerabilityPublished

CVE-2025-68665: langchain-ai langchainjs · Deserialization of Untrusted Data

Affects langchain-ai langchainjsSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.6 High · fixed in 1.1.8 : patch langchain-ai langchainjs soon.

Data as of 3 Dec 2026, 18:36 UTC

CVSS 3.1 base score
8.6High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 59% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.1.8, 0.3.80, 1.2.3 +1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
npm@langchain/corepkg:npm/%40langchain/coreOther threatsAffected
  • >=1.0.0 <1.1.8
Fixed in
  • 1.1.8
npm@langchain/corepkg:npm/%40langchain/coreOther threatsAffected
  • <0.3.80
Fixed in
  • 0.3.80
npmlangchainpkg:npm/langchainOther threatsAffected
  • >=1.0.0 <1.2.3
Fixed in
  • 1.2.3
npmlangchainpkg:npm/langchainOther threatsAffected
  • <0.3.37
Fixed in
  • 0.3.37

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Immediately upgrade all LangChain JS dependencies to @langchain/core versions 0.3.80 or higher and langchain versions 0.3.37 or higher to apply the official patches.
  2. Audit all application code that serializes or deserializes JSON data involving LangChain objects, ensuring no untrusted user input can inject 'lc' keys or other internal markers.
  3. Implement strict input validation and sanitization on all user-supplied data before serialization to prevent injection of malicious structures.
  4. Employ runtime application self-protection (RASP) or similar monitoring to detect anomalous deserialization activities.
  5. Restrict network access to services exposing LangChain-based APIs to trusted sources only, reducing exposure to remote exploitation.
  6. Conduct penetration testing focused on deserialization attacks to verify the effectiveness of mitigations. 7.

Description

CVE-2025-68665 is a high-severity deserialization vulnerability in the LangChain JS framework affecting versions prior to 0.3.80/@langchain/core 1.1.8 and langchain 1.2.3. The flaw arises from improper handling of objects containing the 'lc' key during JSON serialization, allowing attacker-controlled data to be interpreted as legitimate LangChain objects during deserialization. This can lead to remote code execution or other malicious actions without requiring authentication or user interaction. The vulnerability impacts confidentiality but not integrity or availability directly.

References

Community reviews

Loading reviews…