CVE-2026-59152: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in langchain-ai langsmith-sdk
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.
AI Analysis
Technical Summary
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.
CVE-2026-59152: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in langchain-ai 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
Affected software
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
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.
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 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.