Skip to content
OpenAdvisories
Medium · 5.8 CVE-2026-25528 EUVD-2026-6847GHSA-v34v-rq6j-cj6pPYSEC-2026-2584

LangSmith Client SDK Affected by Server-Side Request Forgery via Tracing Header Injection

Published Feb 9, 2026 · Updated Feb 10, 2026 · Assigned by GitHub_M

Description

LangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. The LangSmith SDK's distributed tracing feature is vulnerable to Server-Side Request Forgery via malicious HTTP headers. An attacker can inject arbitrary api_url values through the baggage header, causing the SDK to exfiltrate sensitive trace data to attacker-controlled endpoints. When using distributed tracing, the SDK parses incoming HTTP headers via RunTree.from_headers() in Python or RunTree.fromHeaders() in Typescript. The baggage header can contain replica configurations including api_url and api_key fields. Prior to the fix, these attacker-controlled values were accepted without validation. When a traced operation completes, the SDK's post() and patch() methods send run data to all configured replica URLs, including any injected by an attacker. This vulnerability is fixed in version 0.6.3 of the Python SDK and 0.4.6 of the JavaScript SDK.

Affected products

VendorProductAffectedFixed
langchain-ai langsmith-sdk >= 0.4.10, <0.6.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-worker 3.153.0-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm langsmith >= 0.3.41, < 0.4.6 0.4.6 GHSA-v34v-rq6j-cj6p
PyPI langsmith >= 0.4.10, < 0.6.3 0.6.3 GHSA-v34v-rq6j-cj6p

Advisories 1

References