Back to CVE records
Critical 9.3Published Dec 23, 2025

CVE-2025-68664LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs

Updated under an hour ago ()

Does this affect you?

It affects langchain-ai langchain and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

LangChain is a framework for building agents and LLM-powered applications. Prior to versions 0.3.81 and 1.2.5, a serialization injection vulnerability exists in LangChain's dumps() and dumpd() functions. The functions do not escape dictionaries with 'lc' keys when serializing free-form dictionaries. 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 versions 0.3.81 and 1.2.5.

CVSS
9.3 CRITICAL (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Weakness (CWE)
CWE-502
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Dec 24, 2025
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
langchain-ai langchain
langchain_ai:langchain (from the name)
from 1.0.0, < 1.2.5; before 0.3.81
CNA record
langchain langchain_core
langchain:langchain_core
before 0.3.81; from 1.0.0 before 1.2.5
NVD

References

  • x-refsource-confirm, exploit, vendor-advisory
  • x-refsource-misc, issue-tracking, patch
  • x-refsource-misc, issue-tracking, patch
  • x-refsource-misc, patch
  • x-refsource-misc, patch
  • x-refsource-misc, release-notes
  • x-refsource-misc, release-notes

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.