Skip to main content

LangSmith SDK EUVDEUVD-2026-41879

| CVE-2026-59152 MEDIUM
Path Traversal (CWE-22)
2026-07-06 GitHub_M
5.0
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain LangSmith workspace trace-read access
  2. Delivery
    Send crafted HTTP request with path traversal to TracingMiddleware server
  3. Exploit
    Server reads arbitrary local file via unsanitized path
  4. Execution
    File contents uploaded to LangSmith as trace attachment
  5. Impact
    Attacker retrieves file from workspace traces

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target server must be running LangSmith SDK prior to 0.8.18 with TracingMiddleware active and processing incoming HTTP requests. Triggering the file read requires the ability to send HTTP requests to that server - the description explicitly states this may require no authentication depending on how the service is deployed (e.g., a publicly accessible or internally open endpoint). Retrieving the exfiltrated file contents requires read access to the specific LangSmith workspace that the server's traces are forwarded to, such as a low-privilege workspace member, contractor, or compromised team account. Exploitation is limited to files readable by the server process's OS user; a server running as a least-privilege user with a read-only filesystem mount significantly reduces accessible files. Non-default network segmentation preventing inbound HTTP from untrusted sources also limits trigger-side exposure.

Impact

The NVD-assigned CVSS 5.0 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N) understates real-world impact for many deployments. The S:C metric correctly captures the trust escalation, but C:L likely reflects the constraint that retrieving the file requires workspace read access rather than the sensitivity of the file itself - in practice, arbitrary file read from a server process can expose SSH private keys, cloud credentials, .env secrets, and TLS certificates, making the confidentiality impact functionally high. The PR:L reflects workspace read access needed to retrieve the exfiltrated file; however, the description explicitly notes that triggering the file read (sending the malicious HTTP request) may not require authentication at all depending on deployment, creating a two-phase attack with a lower initial bar than PR:L implies. No EPSS data is available for this CVE, and it is not listed in CISA KEV - no confirmed active exploitation. The combination of low complexity, network accessibility, and high sensitivity of potentially reachable files elevates this above its nominal score for deployments with broadly granted workspace access.

Exploit ScenarioDerived

A contractor with LangSmith workspace read access sends a crafted HTTP request to an internal microservice running TracingMiddleware, embedding a path traversal sequence targeting /run/secrets/db-password or /app/.env in a middleware-parsed field. The server reads the file and uploads its contents to LangSmith as a trace attachment. The contractor then opens the LangSmith workspace, navigates to the trace, and downloads the attachment containing the plaintext credential. No public proof-of-concept exploit has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 06, 2026

Path traversal in LangSmith Client SDK's TracingMiddleware (versions prior to 0.8.18) enables a trust-boundary crossing where any party with LangSmith workspace trace-read access can exfiltrate arbitrary files from servers running the middleware. An attacker sends a crafted HTTP request to a TracingMiddleware-instrumented server, causing it to read a local filesystem path and upload the contents to LangSmith as a trace attachment, which the attacker then retrieves via their workspace access. No public exploit has been identified at time of analysis, but the low complexity and broadly scoped file read make this a meaningful risk for any multi-tenant or contractor-accessible LangSmith deployment.

RemediationAI

Upgrade to LangSmith SDK version 0.8.18 or later, which resolves the path traversal per the vendor-released fix confirmed in GitHub Security Advisory GHSA-f4xh-w4cj-qxq8 (https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-f4xh-w4cj-qxq8). If immediate patching is not feasible, remove or disable TracingMiddleware from any service reachable by untrusted network clients - note this disables LangSmith tracing for those services, which may affect observability. Audit and restrict LangSmith workspace trace-read permissions to fully trusted users only, since any workspace member with this permission can retrieve exfiltrated file contents; revoking access from contractors or low-privilege accounts closes the retrieval path even if a malicious request is sent. On containerized deployments, applying read-only filesystem mounts or restrictive seccomp/AppArmor profiles limits what files the server process - and therefore the middleware - can access, reducing blast radius if patching is delayed.

Affected VersionsENISA

langsmith-sdk < 0.8.18

Affected Packages

pypi langsmith fix: 0.8.18
euvd langsmith_sdk fix: 0.8.18

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The LangSmith SDK (CPE: cpe:2.3:a:langchain-ai:langsmith-sdk:*:*:*:*:*:*:*:*) is a Python observability library providing TracingMiddleware for instrumenting web servers to emit execution traces to the LangSmith platform. The root cause is CWE-22 (Path Traversal): the middleware fails to sanitize user-controlled input in incoming HTTP requests before using it to construct local filesystem paths, permitting traversal sequences such as ../../etc/passwd or ../../app/.env to reference files outside any intended scope. The middleware then reads the targeted file and uploads its contents to LangSmith as a trace attachment, a legitimate feature repurposed as an exfiltration channel. The CVSS Scope:Changed metric correctly models the trust boundary violation - a workspace user's read privileges extend, without authorization, to the filesystem of any server running the middleware.

Know when Langsmith Sdk gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.0 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
vuln.today AI 7.7 HIGH

Arbitrary server file read warrants C:H - practical targets include SSH keys, .env secrets, and TLS certs despite the PR:L workspace access gate.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 5.0 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Jul 06, 2026 - 17:01 EUVD

DescriptionCVE.org

LangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. Prior to 0.8.18, an attacker who can send an HTTP request to a server running the LangSmith SDK's TracingMiddleware can cause that server to read an arbitrary file from its local filesystem and upload the contents to LangSmith as a trace attachment. Depending on how the distributed trace system is deployed, triggering a read may not require authentication. Retrieving the contents requires read access to the LangSmith workspace the traces are sent to. The net effect is a trust-boundary crossing: a party with workspace trace-read access (for example a low-privilege workspace member, a contractor, or a compromised teammate account) gains the ability to read files from any server running TracingMiddleware, a capability outside that workspace's intended trust boundary. This vulnerability is fixed in 0.8.18.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 4 pypi packages depend on langsmith (3 direct, 1 indirect)

Ecosystem-wide dependent count for version 0.8.18.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
niche observability SDK for LangSmith platform deployments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

25
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +25
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy