CVE-2026-25528langchain-ai langsmith-sdk
Medium 5.8 No auth needed
Follow: this CVE · langchain-ai · langchain-ai langsmith-sdk We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.8
- EPSS
- —
- Auth required
- No
- Published
- Feb 9, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-918
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for langsmith-sdk.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | langsmith |
≥ 0.4.10 < 0.6.3 |
0.6.3 |
pip install "langsmith>=0.6.3" |
| PyPI | langsmith |
≥ 0.4.10 < 0.6.3 |
0.6.3 |
pip install "langsmith>=0.6.3" |
| npm | langsmith |
≥ 0.3.41 < 0.4.6 |
0.4.6 |
npm install langsmith@0.4.6 |
Per OSV / GitHub Advisories (GHSA-v34v-rq6j-cj6p, PYSEC-2026-2584). Check the version in your lockfile before upgrading.
Affected products
- langchain-ai · langsmith-sdk
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.