Live threats

All CVEs / Langchain

CVE-2025-68664Langchain Core

High 8.2 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Langchain Core.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
langchainlangchain_core< 0.3.81
langchainlangchain_core≥ 1.0.0 < 1.2.5

Official sources

References

Links published by the sources. Open them with care.