Skip to content

← Public intelligence

PyPI package

langsmith

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

4 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.7PyPIAmendedPublished

    LangSmith SDK TracingMiddleware: Arbitrary server-side file read

    CVE-2026-59152 · GHSA-f4xh-w4cj-qxq8

    Affected
    • PyPI langsmith < 0.8.18
    Fixed in
    0.8.18· Vendor fix available
    Issue
    An attacker who can send an HTTP request to a server running the LangSmith SDK's TracingMiddleware can cause that server to read an arbitrary file from its local filesystem and upload the contents to LangSmith as a trace attachment. Depending on how the distributed trace system is deployed, triggering a read may not require authentication. Retrieving the contents requires read access to the LangSmith workspace the traces are sent to. The net effect is a trust-boundary crossing: a party with workspace trace-read access (for example a low-privilege workspace member, a contractor, or a compromised teammate account) gains the ability to read files from any server running TracingMiddleware, a capability outside that workspace's intended trust boundary. Impact Confidentiality (High): arbitrary read of files accessible to the server process, exposed to anyone with workspace trace-read access. Details Two defects combine. A field supplied through a tracing-propagation header was…

    Recommended action: Upgrade to 0.8.18 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. High, CVSS 7.1PyPIAmendedPublished

    LangSmith SDK: Public prompt pull deserializes untrusted manifests without trust boundary warning

    CVE-2026-45134 · GHSA-3644-q5cj-c5c7

    Affected
    • PyPI langsmith < 0.8.0
    Fixed in
    0.8.0· Vendor fix available
    Issue
    The LangSmith SDK's prompt pull methods (pullprompt / pullpromptcommit in Python, pullPrompt / pullPromptCommit in JS/TS) fetch and deserialize prompt manifests from the LangSmith Hub. These manifests may contain serialized LangChain objects and model configuration that affect runtime behavior. When pulling a public prompt by owner/name identifier, the manifest content is controlled by an external party, but prior versions of the SDK did not distinguish this from pulling a prompt within the caller's own organization. Prompt manifests can intentionally configure a model with a custom base URL, default headers, model name, or other constructor arguments. These are supported features, but they also mean the prompt contents should be treated as executable configuration rather than plain text. A prompt can also include serialized LangChain Runnable or PromptTemplate objects with attacker-controlled constructor kwargs, or secret references that, if secretsfromenv is enabled,…

    Recommended action: Upgrade to 0.8.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Medium, CVSS 5.3PyPIAmendedPublished

    LangSmith SDK: Streaming token events bypass output redaction

    CVE-2026-41182 · GHSA-rr7j-v2q5-chgv

    Affected
    • PyPI langsmith <= 0.7.30
    Fixed in
    0.7.31· Vendor fix available
    Issue
    The LangSmith SDK's output redaction controls (hideOutputs in JS, hideoutputs in Python) do not apply to streaming token events. When an LLM run produces streaming output, each chunk is recorded as a newtoken event containing the raw token value. These events bypass the redaction pipeline entirely — prepareRunCreateOrUpdateInputs (JS) and hiderunoutputs (Python) only process the inputs and outputs fields on a run, never the events array. As a result, applications relying on output redaction to prevent sensitive LLM output from being stored in LangSmith will still leak the full streamed content via run events. Details Both JS and Python SDKs are affected. The same pattern exists in both: - JS SDK: traceable.ts:997-1003 and traceable.ts:1044-1050 - Python SDK: runhelpers.py:1924 and runhelpers.py:1996 In both SDKs, newtoken events with raw kwargs.token values are added during streaming, and the redaction pipeline (hideOutputs in JS, hideoutputs in Python) only processes…

    Recommended action: Upgrade to 0.7.31 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Medium, CVSS 5.8PyPIAmendedPublished

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

    CVE-2026-25528 · GHSA-v34v-rq6j-cj6p

    Affected
    • PyPI langsmith >= 0.4.10, < 0.6.3
    Fixed in
    0.6.3· Vendor fix available
    Issue
    The LangSmith SDK's distributed tracing feature is vulnerable to Server-Side Request Forgery via malicious HTTP headers. An attacker can inject arbitrary apiurl values through the baggage header, causing the SDK to exfiltrate sensitive trace data to attacker-controlled endpoints. --- Description When using distributed tracing, the SDK parses incoming HTTP headers via RunTree.fromheaders() in Python or RunTree.fromHeaders() in Typescript. The baggage header can contain replica configurations including apiurl and apikey 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. --- Attack Vector 1. Attacker sends an HTTP request to a vulnerable service with a malicious baggage header: 2. The service parses the header via RunTree.fromheaders(), storing the attacker's URL 3. When the traced…

    Recommended action: Upgrade to 0.6.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →