9.1

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

CVSS: 9.1v3.1CriticalAnalyzed
AliasesGHSA-r399-636x-v7f6CGA-223r-3rg6-9vf9CGA-25rm-rxq9-42fc
Published 23-12-2025Last modified 24-12-2025

Vulnerability summary

CVE-2025-68665 is a critical (CVSS 9.1) Deserialization of Untrusted Data vulnerability in langchain-ai langchainjs. EPSS estimates a 0.79% chance of exploitation in the next 30 days, higher than 55.5% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.1/10
010
Critical · v3.1 (NVD)
EPSS score
0.79%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 3

Timeline

  1. 23-12-2025
    PublishedVulnerability first disclosed.
  2. 24-12-2025
    Last modifiedVulnerability information updated.

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 metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.79%

Chance of exploitation in the next 30 days

Percentile

56%

Versus all other CVEs

30-day change

0.00 pp

From 0.79% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.79%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard25 products
  • kibana-8.17< 8.17.10-r6
  • kibana-8.17-bitnami< 8.17.10-r6
  • kibana-8.17-iamguarded< 8.17.10-r6
  • kibana-8.18< 8.18.8-r6
  • kibana-8.18-bitnami< 8.18.8-r6
Langchain2 products
@langchain1 product
  • core≥ 1.0.0, < 1.1.8 | < 0.3.80
Langchain-ai1 product
  • langchainjs@langchain/core >= 1.0.0, < 1.1.8 | @langchain/core < 0.3.80 | langchain >= 1.0.0, < 1.2.3 | langchain < 0.3.37
Npm1 product
  • langchain≥ 1.0.0, < 1.2.3 | < 0.3.37

5 vendors · 30 products

References

7 links