Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. langsmith
  4. ›
  5. CVE-2026-41182

CVE-2026-41182: LangSmith SDK: Streaming token events bypass output redaction

April 16, 2026 (updated April 24, 2026)

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.

References

  • github.com/advisories/GHSA-rr7j-v2q5-chgv
  • github.com/langchain-ai/langsmith-sdk
  • github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-rr7j-v2q5-chgv
  • nvd.nist.gov/vuln/detail/CVE-2026-41182

Code Behaviors & Features

Detect and mitigate CVE-2026-41182 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.31

Fixed versions

  • 0.7.31

Solution

Upgrade to version 0.7.31 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-359: Exposure of Private Personal Information to an Unauthorized Actor
  • CWE-532: Insertion of Sensitive Information into Log File

Source file

pypi/langsmith/CVE-2026-41182.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:53 +0000.