Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-41182 EUVD-2026-25152GHSA-rr7j-v2q5-chgvPYSEC-2026-2583

LangSmith SDK: Streaming token events bypass output redaction

Published Apr 23, 2026 · Updated Apr 23, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
langchain-ai langsmith-sdk < 0.5.19, < 0.7.31 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-langsmith 0.10.3-1.1 openSUSE-SU-2026:11284-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3 +1 3.164.0-r6 —
Wolfi rolling open-webui 0.8.12-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm langsmith < 0.5.19 0.5.19 GHSA-rr7j-v2q5-chgv
PyPI langsmith < 0.7.31 0.7.31 GHSA-rr7j-v2q5-chgv

Advisories 2

References