Unsafe deserializationin LangChain AI LangChain.
Proof of concept public (Exploit-DB).
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.
- Upgrade langchain to 0.3.81, 1.2.5 or later, whichever matches your release line.
- Upgrade langchain-core (PyPI) to 0.3.81, 1.2.5 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 22 Dec 2025CVE ID reserved by GitHub_M.
- 23 Dec 2025Published in the CVE List.
- 24 Dec 2025CVE record last updated.
- 27 Dec 2025First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other LangChain vulnerabilities
Same weakness: Deserialization of untrusted data
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- github.com x_refsource_MISC
- github.com x_refsource_MISC
- github.com x_refsource_MISC
- github.com x_refsource_MISC
- github.com x_refsource_MISC
Patchminder. CVE-2025-68664: Unsafe deserialization in LangChain AI LangChain. https://patchminder.com/cve/cve-2025-68664/ (accessed 5 December 2026).