Skip to main content
← All vulnerabilities
CVE-2026-41182GHSA-RR7J-V2Q5-CHGVPYSEC-2026-2583

LangSmith SDK: Streaming token events bypass output redaction

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.5.19, 0.7.31
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

LangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. Prior to version 0.5.19 of the JavaScript SDK and version 0.7.31 of the Python SDK, the LangSmith SDK's output redaction controls (hideOutputs in JS, hide_outputs in Python) do not apply to streaming token events. When an LLM run produces streaming output, each chunk is recorded as a new_token event containing the raw token value. These events bypass the redaction pipeline entirely — prepareRunCreateOrUpdateInputs (JS) and _hide_run_outputs (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. Version 0.5.19 of the JavaScript SDK and version 0.7.31 of the Python SDK fix the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • langchain-ai langsmith-sdk

    fixed in 0.5.19; fixed in 0.7.31

  • langsmithnpm

    fixed in 0.5.19

  • langsmithPyPI

    fixed in 0.7.31

References 1

GitHub · langchain-ai/langsmith-sdk