CVE-2025-68664Langchain Core
High 8.2 No auth needed
Follow: this CVE · Langchain · Langchain Core We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.2
- EPSS
- —
- Auth required
- No
- Published
- Dec 23, 2025
- Updated
- Oct 19, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Langchain Core.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | langchain-core |
≥ 1.0.0 < 1.2.5 |
1.2.5 |
pip install "langchain-core>=1.2.5" |
| PyPI | langchain-core |
< 0.3.81 |
0.3.81 |
pip install "langchain-core>=0.3.81" |
| PyPI | langchain-core |
< 0.3.81 |
0.3.81 |
pip install "langchain-core>=0.3.81" |
| PyPI | langchain-core |
≥ 1.0.0 < 1.2.5 |
1.2.5 |
pip install "langchain-core>=1.2.5" |
Per OSV / GitHub Advisories (GHSA-c67j-w6g6-q2cm, PYSEC-2026-373). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| langchain | langchain_core | < 0.3.81 |
| langchain | langchain_core | ≥ 1.0.0 < 1.2.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Issue Tracking Patch
- github.com Issue Tracking Patch
- github.com Release Notes
- github.com Release Notes
- github.com Exploit Vendor Advisory