SSRF in Langchain-Ai Langsmith-Sdk
CVE-2026-25528
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.
Vulnerability class: SSRF (Server-Side Request Forgery)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.8 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N.
EPSS exploit prediction
EPSS: 0.003 (23.9th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 24th percentile — 23.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.001
Affected products
- Langchain-Ai Langsmith-Sdk — versions >= 0.4.10, <0.6.3
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-25528?
- CVE-2026-25528 is a medium-severity vulnerability in Langchain-Ai Langsmith-Sdk, classified under Server-Side Request Forgery (SSRF). CVSS score: 5.8/10. Published 2026-02-09.
- How severe is CVE-2026-25528?
- Medium severity. CVSS v3 base score is 5.8 out of 10.