Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain LangSmith workspace trace-read access
-
DeliverySend crafted HTTP request with path traversal to TracingMiddleware server
-
ExploitServer reads arbitrary local file via unsanitized path
-
ExecutionFile contents uploaded to LangSmith as trace attachment
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Arbitrary server file read warrants C:H - practical targets include SSH keys, .env secrets, and TLS certs despite the PR:L workspace access gate.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
More in Langsmith Sdk
View allPrototype pollution in the LangSmith JavaScript/TypeScript SDK (npm 'langsmith', versions <= 0.5.17) lets an attacker wh
LangSmith Client SDKs in JavaScript (prior to 0.5.19) and Python (prior to 0.7.31) fail to apply output redaction contro
EUVD-2026-41879
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB