CVE-2025-68664: critical vulnerability in langchain-ai langchain
LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
60Vexday Risk Score
Keep watching. It has a public proof of concept.
ssvc Attendcvss 9.3epss 43%
from disclosure to weapon4 days
Published on NVDDec 23
1st PoC+4d
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:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Affected products
langchain-ai · langchainpublic PoCs found — 5
exploitdbwww.exploit-db.com/exploits/52514unverifiedgithubgithub.com/Ak-cybe/CVE-2025-68664-LangGrinch-PoC★ 3githubgithub.com/comerc/CVE-2025-68664★ 0githubgithub.com/Johnnyzhou666/langgrinch-cve-2025-68664-analysis★ 0githubgithub.com/t-sorger/cve-2025-68664-langgrinch★ 0⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
Related CVEs — langchain-ai langchain
In the same product, most dangerous first.
CVE-2026-34070HIGHLangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functionsEPSS 1.4%CVE-2025-65106HIGHLangChain Vulnerable to Template Injection via Attribute Access in Prompt TemplatesEPSS 0.5%CVE-2026-26013LOWLangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messagesEPSS 0.4%CVE-2026-44843HIGHLangChain: Unsafe deserialization of attacker-controlled LangChain objects through overly broad `load()` allowlistsEPSS 0.4%CVE-2026-40087MEDIUMLangChain has incomplete f-string validation in prompt templatesEPSS 0.3%CVE-2026-55443MEDIUMLangChain: Path traversal and sandbox escape in LangChain file-search middleware and loadersEPSS 0.2%
References
https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6https://github.com/langchain-ai/langchain/pull/34455https://github.com/langchain-ai/langchain/pull/34458https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5https://github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm