9.1

CVE-2025-68665: LangChain serialization injection vulnerability enables secret extraction

Analyzed
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.85% chance of exploitation in the next 30 days, higher than 59.4% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.6 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
9.1/10
010
Critical · v3.1 (NVD)
EPSS score
0.85%
0%100%
Low · +0.06 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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.85%

Chance of exploitation in the next 30 days

Percentile

59%

Versus all other CVEs

30-day change

Increase +0.06 pp

From 0.79% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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