Skip to content
MediumVulnerabilityLLM-specific

GHSA-v34v-rq6j-cj6p: LangSmith Client SDK Affected by Server-Side Request Forgery via Tracing Header Injection

Published
Record updated
View JSON
Affected
  • langsmith >= 0.4.10, < 0.6.3, fixed in 0.6.3
  • langsmith >= 0.3.41, < 0.4.6, fixed in 0.4.6
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

The LangSmith SDK's distributed tracing feature is vulnerable to server-side request forgery through the baggage header. Before the fix, RunTree.from_headers() in Python and RunTree.fromHeaders() in TypeScript accepted attacker-supplied api_url and api_key values from baggage, and post() and patch() then sent run data, including LLM inputs and outputs, to those URLs.

Mitigation

Python: pip install langsmith>=0.6.3. JavaScript: npm install langsmith@>=0.4.6. The fix filters replica configurations to an allowlist of safe fields. If upgrading is not possible, strip or validate the baggage header before passing it to from_headers(), and do not use TracingMiddleware with untrusted traffic.