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…

CVE-2026-59152: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in langchain-ai langsmith-sdk

0
Medium
VulnerabilityCVE-2026-59152cvecve-2026-59152cwe-22cwe-346cwe-843
Published: 07/06/2026 (07/06/2026, 14:26:55 UTC)
Source: CVE Database V5
Vendor/Project: langchain-ai
Product: langsmith-sdk

Description

A path traversal vulnerability exists in langchain-ai langsmith-sdk versions prior to 0.8.18. An attacker able to send HTTP requests to a server running the vulnerable TracingMiddleware can cause the server to read arbitrary local files and upload their contents as trace attachments. This can lead to unauthorized file disclosure crossing the intended trust boundary of the LangSmith workspace. The vulnerability is fixed in version 0.8.18.

CVSS v3.1

Score 5.0medium

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

Affected software

langsmith-sdk
pkg:pypi/langsmith-sdk
Affected versions
<0.8.18

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: 07/06/2026, 15:52:21 UTC

Technical Analysis

CVE-2026-59152 is a path traversal vulnerability (CWE-22) in the langchain-ai langsmith-sdk's TracingMiddleware component. Prior to version 0.8.18, an attacker who can send HTTP requests to a server running this middleware can cause it to read arbitrary files from the local filesystem and upload their contents to the LangSmith platform as trace attachments. Exploitation may not require authentication depending on deployment. The vulnerability results in a trust-boundary crossing, allowing parties with read access to workspace traces to access files on the server outside the intended scope. The issue is resolved in version 0.8.18.

Potential Impact

An attacker with the ability to send HTTP requests to the vulnerable service can cause arbitrary local files to be read and uploaded as trace attachments. This enables unauthorized disclosure of sensitive files from the server's filesystem. The impact is limited by the requirement that the attacker must have read access to the LangSmith workspace traces, but this can include low-privilege workspace members or compromised accounts, thus expanding their access beyond intended boundaries. The vulnerability does not affect confidentiality of the server beyond this trust boundary crossing and does not impact integrity or availability.

Mitigation Recommendations

Upgrade langsmith-sdk to version 0.8.18 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated. Patch status is not explicitly stated as 'official-fix' in the vendor advisory, but the description confirms the issue is fixed in 0.8.18. There is no indication that the vendor manages this as a cloud service; therefore, manual upgrade is required.

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-07-02T16:50:27.886Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4bcbb327e9c79719c0cec2

Added to database: 07/06/2026, 15:37:23 UTC

Last enriched: 07/06/2026, 15:52:21 UTC

Last updated: 07/06/2026, 16:25:09 UTC

Views: 4

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