CVE-2026-45134: CWE-502: Deserialization of Untrusted Data in langchain-ai langsmith-sdk
LangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. Prior to LangSmith SDK Python 0.8.0 and JS/TS 0.6.0, the LangSmith SDK's prompt pull methods (pull_prompt / pull_prompt_commit in Python, pullPrompt / pullPromptCommit in JS/TS) fetch and deserialize prompt manifests from the LangSmith Hub. These manifests may contain serialized LangChain objects and model configuration that affect runtime behavior. When pulling a public prompt by owner/name identifier, the manifest content is controlled by an external party, but prior versions of the SDK did not distinguish this from pulling a prompt within the caller's own organization. This vulnerability is fixed in LangSmith SDK Python 0.8.0 and JS/TS 0.6.0.
AI Analysis
Technical Summary
The vulnerability arises from unsafe deserialization of untrusted data in langsmith-sdk's prompt pull methods (pull_prompt / pull_prompt_commit in Python and pullPrompt / pullPromptCommit in JS/TS). Prior to versions 0.8.0 (Python) and 0.6.0 (JS/TS), the SDK fetched prompt manifests from the LangSmith Hub without distinguishing whether the prompt was from the user's own organization or a public prompt controlled externally. These manifests can include serialized LangChain objects and model configurations that affect runtime behavior. This lack of validation enables potential exploitation via deserialization of malicious data. The issue is classified under CWE-502 (Deserialization of Untrusted Data) and carries a CVSS 3.1 score of 7.1, indicating high severity. The vulnerability is addressed by updating to the fixed SDK versions.
Potential Impact
Successful exploitation could allow an attacker to influence the runtime behavior of applications using vulnerable versions of the langsmith-sdk by supplying malicious serialized objects in public prompt manifests. This may lead to partial confidentiality impact (high impact on confidentiality), limited integrity impact (low), and no availability impact. There are no known exploits in the wild as of the published date. The vulnerability affects users who pull public prompts using the affected SDK versions.
Mitigation Recommendations
Upgrade langsmith-sdk to Python version 0.8.0 or later, or JS/TS version 0.6.0 or later, where this vulnerability is fixed. Since no official patch advisory is provided beyond these version updates, applying these version upgrades is the recommended remediation. Patch status is not explicitly confirmed beyond these version increments; check the vendor's official channels for any additional guidance.
CVE-2026-45134: CWE-502: Deserialization of Untrusted Data in langchain-ai langsmith-sdk
Description
LangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. Prior to LangSmith SDK Python 0.8.0 and JS/TS 0.6.0, the LangSmith SDK's prompt pull methods (pull_prompt / pull_prompt_commit in Python, pullPrompt / pullPromptCommit in JS/TS) fetch and deserialize prompt manifests from the LangSmith Hub. These manifests may contain serialized LangChain objects and model configuration that affect runtime behavior. When pulling a public prompt by owner/name identifier, the manifest content is controlled by an external party, but prior versions of the SDK did not distinguish this from pulling a prompt within the caller's own organization. This vulnerability is fixed in LangSmith SDK Python 0.8.0 and JS/TS 0.6.0.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from unsafe deserialization of untrusted data in langsmith-sdk's prompt pull methods (pull_prompt / pull_prompt_commit in Python and pullPrompt / pullPromptCommit in JS/TS). Prior to versions 0.8.0 (Python) and 0.6.0 (JS/TS), the SDK fetched prompt manifests from the LangSmith Hub without distinguishing whether the prompt was from the user's own organization or a public prompt controlled externally. These manifests can include serialized LangChain objects and model configurations that affect runtime behavior. This lack of validation enables potential exploitation via deserialization of malicious data. The issue is classified under CWE-502 (Deserialization of Untrusted Data) and carries a CVSS 3.1 score of 7.1, indicating high severity. The vulnerability is addressed by updating to the fixed SDK versions.
Potential Impact
Successful exploitation could allow an attacker to influence the runtime behavior of applications using vulnerable versions of the langsmith-sdk by supplying malicious serialized objects in public prompt manifests. This may lead to partial confidentiality impact (high impact on confidentiality), limited integrity impact (low), and no availability impact. There are no known exploits in the wild as of the published date. The vulnerability affects users who pull public prompts using the affected SDK versions.
Mitigation Recommendations
Upgrade langsmith-sdk to Python version 0.8.0 or later, or JS/TS version 0.6.0 or later, where this vulnerability is fixed. Since no official patch advisory is provided beyond these version updates, applying these version upgrades is the recommended remediation. Patch status is not explicitly confirmed beyond these version increments; check the vendor's official channels for any additional guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-08T20:08:17.209Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a17519de29bf47b50e7719e
Added to database: 05/27/2026, 20:18:37 UTC
Last enriched: 06/04/2026, 20:22:02 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 46
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.