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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| langchain-ai | langchain | < 0.3.85, >= 1.0.0a1, < 1.3.3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | langchain-core | >= 1.0.0, < 1.3.3 | 1.3.3 | GHSA-pjwx-r37v-7724 |
| PyPI | langchain-core | < 0.3.85 | 0.3.85 | GHSA-pjwx-r37v-7724 |
| PyPI | langchain-core | < 0.3.85 · >= 1.0.0, < 1.3.3 | 0.3.85, 1.3.3 | PYSEC-2026-2564 |
Advisories 1
- WID-SEC-2026-1447 LangChain: Schwachstelle ermöglicht Manipulation von Dateien und Offenlegung von Informationen BSI CERT-Bund (WID) · Jul 21, 2026