CVE-2026-44843: CWE-502: Deserialization of Untrusted Data in langchain-ai langchain
LangChain versions prior to 0. 3. 85 and between 1. 0. 0a1 and before 1. 3. 3 contain a deserialization vulnerability. The framework uses overly broad object allowlists when deserializing certain runtime inputs, allowing trusted LangChain-serializable objects to be instantiated with untrusted constructor arguments. This can lead to unintended object instantiation from attacker-supplied serialized data. The vulnerability is identified as CWE-502 and has a high severity with a CVSS score of 8.
AI Analysis
Technical Summary
LangChain, a framework for building agents and LLM-powered applications, had insecure deserialization in versions before 0.3.85 and between 1.0.0a1 and 1.3.3. The issue arises from runtime code paths that deserialize inputs using overly broad allowlists, specifically calling load() with allowed_objects="all". While this does not allow arbitrary Python object deserialization, it permits any trusted LangChain-serializable object to be revived, which is broader than necessary. Consequently, attacker-supplied serialized constructor dictionaries may cause trusted runtime paths to instantiate classes with untrusted constructor arguments, potentially leading to security risks. The vulnerability is tracked as CVE-2026-44843 and is fixed in versions 0.3.85 and 1.3.3.
Potential Impact
The vulnerability allows an attacker to supply malicious serialized data that can cause the LangChain runtime to instantiate trusted objects with untrusted constructor arguments. This can lead to unauthorized information disclosure or manipulation of application behavior. The CVSS score of 8.2 indicates a high impact on confidentiality with limited impact on integrity and no impact on availability. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
This vulnerability is fixed in LangChain versions 0.3.85 and 1.3.3. Users should upgrade to at least these versions to remediate the issue. Since this is not a cloud service, remediation depends on user action to update the software. Patch status is not explicitly stated in the vendor advisory content, but the fixed versions are clearly identified. Users should verify they are running versions 0.3.85 or later, or 1.3.3 or later, and update accordingly.
CVE-2026-44843: CWE-502: Deserialization of Untrusted Data in langchain-ai langchain
Description
LangChain versions prior to 0. 3. 85 and between 1. 0. 0a1 and before 1. 3. 3 contain a deserialization vulnerability. The framework uses overly broad object allowlists when deserializing certain runtime inputs, allowing trusted LangChain-serializable objects to be instantiated with untrusted constructor arguments. This can lead to unintended object instantiation from attacker-supplied serialized data. The vulnerability is identified as CWE-502 and has a high severity with a CVSS score of 8.
CVSS v3.1
Score 8.2high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
LangChain, a framework for building agents and LLM-powered applications, had insecure deserialization in versions before 0.3.85 and between 1.0.0a1 and 1.3.3. The issue arises from runtime code paths that deserialize inputs using overly broad allowlists, specifically calling load() with allowed_objects="all". While this does not allow arbitrary Python object deserialization, it permits any trusted LangChain-serializable object to be revived, which is broader than necessary. Consequently, attacker-supplied serialized constructor dictionaries may cause trusted runtime paths to instantiate classes with untrusted constructor arguments, potentially leading to security risks. The vulnerability is tracked as CVE-2026-44843 and is fixed in versions 0.3.85 and 1.3.3.
Potential Impact
The vulnerability allows an attacker to supply malicious serialized data that can cause the LangChain runtime to instantiate trusted objects with untrusted constructor arguments. This can lead to unauthorized information disclosure or manipulation of application behavior. The CVSS score of 8.2 indicates a high impact on confidentiality with limited impact on integrity and no impact on availability. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
This vulnerability is fixed in LangChain versions 0.3.85 and 1.3.3. Users should upgrade to at least these versions to remediate the issue. Since this is not a cloud service, remediation depends on user action to update the software. Patch status is not explicitly stated in the vendor advisory content, but the fixed versions are clearly identified. Users should verify they are running versions 0.3.85 or later, or 1.3.3 or later, and update accordingly.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-07T21:21:48.352Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a16041de29bf47b505ea069
Added to database: 5/26/2026, 8:35:41 PM
Last enriched: 5/26/2026, 8:48:39 PM
Last updated: 5/27/2026, 4:03:20 AM
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.