CVE-2026-44843

LangChain: Unsafe deserialization of attacker-controlled LangChain objects through overly broad `load()` allowlists

State
Published
Severity
8.2 High
Published
May 26, 2026
Updated
May 27, 2026
Reserved
May 7, 2026

Read the record on cve.org

Description

LangChain is a framework for building agents and LLM-powered applications. Prior to 0.3.85 and 1.3.3, LangChain contains older runtime code paths that deserialize run inputs, run outputs, or other application-controlled payloads using overly broad object allowlists. These paths may call load() with allowed_objects="all". This does not enable arbitrary Python object deserialization, but it does allow any trusted LangChain-serializable object to be revived, which is broader than these runtime paths require. As a result, attacker-supplied LangChain serialized constructor dictionaries may cause trusted runtime paths to instantiate classes with untrusted constructor arguments. This vulnerability is fixed in 0.3.85 and 1.3.3.

Scores

CVSSScoreVectorSource
3.18.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:NGitHub_M

Weaknesses

  • CWE-502 Deserialization of Untrusted Data

Affected Products

ProductVersions
langchainlangchain-ai
  • < 0.3.85Affected
  • >= 1.0.0a1, < 1.3.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.