CVE-2025-68664
Critical · 9.3LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs
CVSS
9.3
EPSS
42.9%
Published
Dec 23, 2025
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | langchain-core | 0 | 0.3.81 |
| PyPI | langchain-core | 1.0.0 | 1.2.5 |
| Chainguard | py3-langchain | 0 | 1.2.6-r0 |
| Chainguard | py3.10-langchain | 0 | 1.2.6-r0 |
| Chainguard | py3.11-langchain | 0 | 1.2.6-r0 |
| Chainguard | py3.12-langchain | 0 | 1.2.6-r0 |
| Chainguard | py3.13-langchain | 0 | 1.2.6-r0 |
| Wolfi | py3-langchain | 0 | 1.2.6-r0 |
| Wolfi | py3.10-langchain | 0 | 1.2.6-r0 |
| Wolfi | py3.11-langchain | 0 | 1.2.6-r0 |
| Wolfi | py3.12-langchain | 0 | 1.2.6-r0 |
| Wolfi | py3.13-langchain | 0 | 1.2.6-r0 |
| pypi | langchain-core | 1.0.0 | No fix |
Related vulnerabilities
- GHSA-2g6r-c272-w58r LangChain affected by SSRF via image_url token counting in… Also affects langchain-core
- CVE-2026-26013 LangChain is a framework for building agents and LLM-powered applications. Also affects langchain-core
- CVE-2025-65106 LangChain is a framework for building agents and LLM-powered applications. Also affects langchain-core
- CVE-2026-114724 Roundcube Webmail before 1.6.20 and 1.7.x before 1.7.5 contains an object injection… CWE-502
- CVE-2026-112081 A vulnerability was determined in hankcs HanLP up to 2.1.0-beta.64. CWE-502
- CVE-2026-96745 Deserialization of untrusted data in the command monitoring support of the MongoDB PHP… CWE-502
- CVE-2026-62107 Unauthenticated PHP Object Injection in Masteriyo - LMS <= 3.4.0 versions. CWE-502
- CVE-2026-62103 Unauthenticated PHP Object Injection in Everest Forms <= 3.6.0 versions. CWE-502