Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 90%

CVE-2026-45134: CWE-502: Deserialization of Untrusted Data in langchain-ai langsmith-sdk

0
High
VulnerabilityCVE-2026-45134cvecve-2026-45134cwe-502
Published: 05/27/2026 (05/27/2026, 19:35:32 UTC)
Source: CVE Database V5
Vendor/Project: langchain-ai
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

Affected software

langsmith-sdk
pkg:pypi/langsmith-sdk
Affected versions
<0.8.0
langsmith-sdk
pkg:npm/langsmith-sdk
Affected versions
<0.6.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/04/2026, 20:22:02 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses