๐Ÿ” CVE Alert

CVE-2026-41182

MEDIUM 5.3

LangSmith SDK: Streaming token events bypass output redaction

CVSS Score
5.3
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-200 CWE-359 CWE-532
Vendor langchain-ai
Product langsmith-sdk
Published Apr 23, 2026
Stay Ahead of the Next One

Get instant alerts for langchain-ai langsmith-sdk

Be the first to know when new medium vulnerabilities affecting langchain-ai langsmith-sdk are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Affected Versions

langchain-ai / langsmith-sdk
< 0.5.19 < 0.7.31

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-rr7j-v2q5-chgv