Arbitrary server-side file read in LangSmith SDK TracingMiddleware (langchain-ai langsmith-sdk)

CVE-2026-59152
MEDIUM 5.0

At a glance

Source
NVD
EPSS
EPSS 0.20 % Β· percentile 10 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
NVD status
Awaiting Analysis

Description

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.

Weaknesses (CWE)

  • CWE-22 β€” Improper Limitation of a Pathname to a Restricted Directory
  • CWE-346 β€” Origin Validation Error
  • CWE-843 β€” Access of Resource Using Incompatible Type

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.0CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:NGitHub_M
CVSS 3.1MEDIUM 5.0CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:NNVD Β· security-advisories@github.com (Secondary)

Advisories

European references

Affected products

ProductVersions
langchain-ai Β· langsmith-sdkaffected < 0.8.18

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD