Back to feed
21Track

LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs

langchain-ai langchain · CVE-2025-68664 GHSA-C67J-W6G6-Q2CM
0 news outlets0 CERTs and agencies0 research labs

Assessment: Track

SSVC decision points: exploitation poc, automatable yes, technical impact partial, deployment low.

What is it?

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.

Evidence

Official warnings4National CERTs, government cyber security agencies and the vendor’s own advisories

Exploitation

  • Exploit code published (not verified by us)
  • Exploited in the wild (confirmed by a source)
  • Listed as known exploited (CISA KEV)
CVSS
9.3
EPSS
–
First seen
23 Dec 2025
Status
confirmed

All langchain-ai vulnerabilities