id: PYSEC-2026-2583 published: "2026-07-13T15:02:48.267180Z" modified: "2026-07-13T16:04:34.412616Z" aliases: - CVE-2026-41182 - GHSA-rr7j-v2q5-chgv summary: "LangSmith SDK: Streaming token events bypass output redaction" details: "## Summary\n\nThe 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.\n\n## Details\n\n**Both JS and Python SDKs are affected.** The same pattern exists in both:\n\n- **JS SDK**: `traceable.ts:997-1003` and `traceable.ts:1044-1050`\n- **Python SDK**: `run_helpers.py:1924` and `run_helpers.py:1996`\n\nIn 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`." affected: - package: name: langsmith ecosystem: PyPI purl: pkg:pypi/langsmith ranges: - type: ECOSYSTEM events: - introduced: "0" - fixed: 0.7.31 versions: - 0.0.0rc0 - 0.0.1 - 0.0.10 - 0.0.11 - 0.0.12 - 0.0.13 - 0.0.14 - 0.0.15 - 0.0.16 - 0.0.18 - 0.0.19 - 0.0.2 - 0.0.20 - 0.0.21 - 0.0.22 - 0.0.23 - 0.0.24 - 0.0.25 - 0.0.26 - 0.0.27 - 0.0.28 - 0.0.29 - 0.0.3 - 0.0.30 - 0.0.31 - 0.0.32 - 0.0.33 - 0.0.34 - 0.0.35 - 0.0.36 - 0.0.37 - 0.0.38 - 0.0.39 - 0.0.4 - 0.0.40 - 0.0.41 - 0.0.42 - 0.0.43 - 0.0.44 - 0.0.45 - 0.0.46 - 0.0.47 - 0.0.48 - 0.0.49 - 0.0.5 - 0.0.50 - 0.0.51 - 0.0.52 - 0.0.53 - 0.0.54 - 0.0.55 - 0.0.56 - 0.0.57 - 0.0.58 - 0.0.59 - 0.0.6 - 0.0.60 - 0.0.61 - 0.0.62 - 0.0.63 - 0.0.64 - 0.0.65 - 0.0.66 - 0.0.67 - 0.0.68 - 0.0.69 - 0.0.7 - 0.0.70 - 0.0.71 - 0.0.72 - 0.0.73 - 0.0.74 - 0.0.75 - 0.0.76 - 0.0.77 - 0.0.78 - 0.0.79 - 0.0.8 - 0.0.80 - 0.0.81 - 0.0.82 - 0.0.83 - 0.0.84 - 0.0.84rc1 - 0.0.84rc2 - 0.0.84rc3 - 0.0.84rc4 - 0.0.84rc5 - 0.0.85 - 0.0.86 - 0.0.86rc1 - 0.0.87 - 0.0.88 - 0.0.89 - 0.0.9 - 0.0.90 - 0.0.91 - 0.0.92 - 0.1.0 - 0.1.1 - 0.1.10 - 0.1.100 - 0.1.101 - 0.1.102 - 0.1.103 - 0.1.104 - 0.1.105 - 0.1.106 - 0.1.107 - 0.1.108 - 0.1.108rc0 - 0.1.109 - 0.1.11 - 0.1.110 - 0.1.111 - 0.1.112 - 0.1.113 - 0.1.114 - 0.1.115 - 0.1.115rc0 - 0.1.115rc1 - 0.1.116 - 0.1.116rc1 - 0.1.117 - 0.1.118 - 0.1.119 - 0.1.12 - 0.1.120 - 0.1.121 - 0.1.122 - 0.1.123 - 0.1.124 - 0.1.125 - 0.1.126 - 0.1.127 - 0.1.128 - 0.1.129 - 0.1.13 - 0.1.130 - 0.1.131 - 0.1.132 - 0.1.133 - 0.1.134 - 0.1.135 - 0.1.136 - 0.1.137 - 0.1.138 - 0.1.138rc1 - 0.1.138rc2 - 0.1.139 - 0.1.139rc1 - 0.1.139rc2 - 0.1.14 - 0.1.140 - 0.1.141 - 0.1.142 - 0.1.143 - 0.1.144 - 0.1.144rc1 - 0.1.144rc2 - 0.1.144rc3 - 0.1.145 - 0.1.146 - 0.1.147 - 0.1.148rc1 - 0.1.15 - 0.1.16 - 0.1.17 - 0.1.18 - 0.1.19 - 0.1.2 - 0.1.20 - 0.1.21 - 0.1.22 - 0.1.23 - 0.1.24 - 0.1.25 - 0.1.26 - 0.1.27 - 0.1.28 - 0.1.29 - 0.1.3 - 0.1.30 - 0.1.31 - 0.1.32rc1 - 0.1.32rc2 - 0.1.32rc3 - 0.1.32rc4 - 0.1.32rc5 - 0.1.32rc6 - 0.1.32rc7 - 0.1.32rc8 - 0.1.33 - 0.1.34 - 0.1.35 - 0.1.36 - 0.1.37 - 0.1.38 - 0.1.39 - 0.1.4 - 0.1.40 - 0.1.41 - 0.1.42 - 0.1.43 - 0.1.44 - 0.1.45 - 0.1.45rc1 - 0.1.46 - 0.1.46rc1 - 0.1.47 - 0.1.48 - 0.1.49 - 0.1.5 - 0.1.50 - 0.1.51 - 0.1.52 - 0.1.53 - 0.1.54 - 0.1.55 - 0.1.56 - 0.1.57 - 0.1.58 - 0.1.59 - 0.1.6 - 0.1.60 - 0.1.61 - 0.1.62 - 0.1.63 - 0.1.64 - 0.1.65 - 0.1.66 - 0.1.67 - 0.1.68 - 0.1.69 - 0.1.7 - 0.1.70 - 0.1.71 - 0.1.72 - 0.1.73 - 0.1.74 - 0.1.75 - 0.1.76 - 0.1.77 - 0.1.78 - 0.1.79 - 0.1.8 - 0.1.80 - 0.1.81 - 0.1.82 - 0.1.83 - 0.1.84 - 0.1.85 - 0.1.86 - 0.1.87 - 0.1.88 - 0.1.89 - 0.1.9 - 0.1.90 - 0.1.91 - 0.1.92 - 0.1.93 - 0.1.94 - 0.1.95 - 0.1.96 - 0.1.97 - 0.1.98 - 0.1.99 - 0.1.99rc1 - 0.2.0 - 0.2.1 - 0.2.10 - 0.2.11 - 0.2.11rc1 - 0.2.11rc10 - 0.2.11rc11 - 0.2.11rc12 - 0.2.11rc13 - 0.2.11rc14 - 0.2.11rc15 - 0.2.11rc2 - 0.2.11rc3 - 0.2.11rc4 - 0.2.11rc5 - 0.2.11rc6 - 0.2.11rc7 - 0.2.11rc8 - 0.2.11rc9 - 0.2.2 - 0.2.3 - 0.2.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.54rc0 - 0.4.55 - 0.4.56 - 0.4.57 - 0.4.58 - 0.4.59 - 0.4.6 - 0.4.60 - 0.4.7 - 0.4.8 - 0.4.9 - 0.5.0 - 0.5.1 - 0.5.2 - 0.6.0 - 0.6.0rc0 - 0.6.1 - 0.6.2 - 0.6.3 - 0.6.4 - 0.6.5 - 0.6.6 - 0.6.7 - 0.6.8 - 0.6.9 - 0.7.0 - 0.7.1 - 0.7.10 - 0.7.11 - 0.7.12 - 0.7.13 - 0.7.14 - 0.7.15 - 0.7.16 - 0.7.17 - 0.7.18 - 0.7.19 - 0.7.2 - 0.7.20 - 0.7.21 - 0.7.22 - 0.7.23 - 0.7.24 - 0.7.25 - 0.7.26 - 0.7.27 - 0.7.28 - 0.7.29 - 0.7.3 - 0.7.30 - 0.7.4 - 0.7.5 - 0.7.6 - 0.7.7 - 0.7.8 - 0.7.9 references: - type: WEB url: https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-rr7j-v2q5-chgv - type: ADVISORY url: https://nvd.nist.gov/vuln/detail/CVE-2026-41182 - type: PACKAGE url: https://github.com/langchain-ai/langsmith-sdk - type: PACKAGE url: https://pypi.org/project/langsmith - type: ADVISORY url: https://github.com/advisories/GHSA-rr7j-v2q5-chgv severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N