A AegiFlow
CRITICALCVSS 9.3EPSS 42.9%

CVE-2025-68664

CVE-2025-68664 updated by NVD

Published
2025-12-23
Modified
2026-10-27
EPSS percentile
99%
Sources
github-advisory, nvd

Summary

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.

Affected packages

EcosystemPackageAffected versionsFixed versions
PyPIlangchain-core—1.2.5, 0.3.81

Remediation: Upgrade to 1.2.5 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

Includes data from the National Vulnerability Database (NIST). NVD data is in the public domain; this page is not endorsed by NIST.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.