LangSmith Client SDK Affected by Server-Side Request Forgery via Tracing Header Injection
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| langchain-ai | langsmith-sdk | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Langchain-ai | Langsmith-sdk |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-v34v-rq6j-cj6p | LangSmith Client SDK Affected by Server-Side Request Forgery via Tracing Header Injection |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.315% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Langchain-ai
Langchain-ai langsmith-sdk |
|
| Vendors & Products |
Langchain-ai
Langchain-ai langsmith-sdk |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | LangSmith Client SDK Affected by Server-Side Request Forgery via Tracing Header Injection | |
| Weaknesses | CWE-918 | |
| References |
| |
| Metrics |
cvssV3_1
|