langsmith
Affected
- introduced
0, fixed0.7.31(ecosystem)
Fixed versions
0.7.31
Fix
- Fixed version
0.7.31pip install --upgrade langsmith==0.7.31
Advisory
Also known as: CVE-2026-41182, GHSA-rr7j-v2q5-chgv
LangSmith SDK: Streaming token events bypass output redaction
Summary
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.
Details
Both JS and Python SDKs are affected. The same pattern exists in both:
traceable.ts:997-1003 and traceable.ts:1044-1050run_helpers.py:1924 and run_helpers.py:1996In both SDKs, new_token events with raw kwargs.token values are added during streaming, and the redaction pipeline (hideOutputs in JS, hide_outputs in Python) only processes inputs/outputs — never events.
Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
0, fixed 0.7.31 (ecosystem)0.7.31
0.7.31pip install --upgrade langsmith==0.7.31Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0