LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs

Summary

CVECVE-2025-68664
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-12-23 23:15:44 UTC
Updated2026-10-19 22:10:00 UTC
DescriptionLangChain 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.

Risk And Classification

Primary CVSS: v3.1 8.2 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Problem Types: CWE-502 | CWE-502 CWE-502: Deserialization of Untrusted Data


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary8.2HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
3.1[email protected]Secondary9.3CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
3.1CNADECLARED9.3CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Langchain Langchain Core All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Langchain-ai Langchain affected >= 1.0.0, < 1.2.5 Not specified
CNA Langchain-ai Langchain affected < 0.3.81 Not specified

References

ReferenceSourceLinkTags
github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f56... [email protected] github.com Patch
github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6a... [email protected] github.com Patch
github.com/langchain-ai/langchain/pull/34455 [email protected] github.com Issue Tracking, Patch
github.com/langchain-ai/langchain/security/advisories/GHSA-c67j-w6g6-q2cm 134c704f-9b21-4f2e-91b3-4a467353bcc0 github.com Exploit, Vendor Advisory
github.com/langchain-ai/langchain/pull/34458 [email protected] github.com Issue Tracking, Patch
github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.5 [email protected] github.com Release Notes
github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81 [email protected] github.com Release Notes
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report