LangChain: Unsafe deserialization of attacker-controlled LangChain objects through overly broad `load()` allowlists (langchain-ai langchain)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.41 % · percentile 35 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-502 — Deserialization of Untrusted Data
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N | GitHub_M |
| CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-pjwx-r37v-7724 — LangChain vulnerable to unsafe deserialization of attacker-controlled objects through overly broad `load()` allowlists
- PYSEC-2026-2564 — LangChain vulnerable to unsafe deserialization of attacker-controlled objects through overly broad `load()` allowlists
European references
- ENISA EUVD · EUVD-2026-31976
- GCVE · GCVE-0-2026-44843
Affected configurations (NVD CPE)
cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*< 0.3.85cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*≥ 1.0.0 < 1.3.3
Affected products
| Product | Versions |
|---|---|
| langchain-ai · langchain | affected < 0.3.85 ; affected >= 1.0.0a1, < 1.3.3 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |