Skip to content
HighVulnerability

GHSA-f4xh-w4cj-qxq8: LangSmith SDK TracingMiddleware: Arbitrary server-side file read

Published
Record updated
View JSON
Affected
  • langsmith < 0.8.18
Fixed in
0.8.18
  • released June 19, 2026, on the day of disclosure

Summary

A flaw in the LangSmith SDK's TracingMiddleware lets an attacker who can send HTTP requests to a server running it make that server read an arbitrary local file and upload the contents to LangSmith as a trace attachment. Retrieving the contents requires read access to the destination LangSmith workspace, and triggering the read may not require authentication, depending on deployment. The flaw combines an unvalidated tracing-propagation header field (CWE-346), a type check that never engages (CWE-843), and a path traversal read (CWE-22).

Mitigation

Upgrade the Python SDK to `>= 0.8.18`. Until upgrading, do not expose `TracingMiddleware` to untrusted HTTP traffic, and limit workspace trace-read access to trusted members.