The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-41182

CVE-2026-41182: LangSmith SDK Information Disclosure Bug

CVE-2026-41182 is an information disclosure vulnerability in LangSmith Client SDKs that allows sensitive LLM output to leak through streaming token events. This article covers the technical details, affected versions, and fixes.

Published: April 23, 2026

CVE-2026-41182 Overview

A sensitive data exposure vulnerability has been identified in LangSmith Client SDKs that allows streaming token events to bypass output redaction controls. 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, resulting in potential leakage of sensitive LLM output data.

Critical Impact

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, potentially exposing confidential information processed by LLM applications.

Affected Products

  • LangSmith JavaScript SDK versions prior to 0.5.19
  • LangSmith Python SDK versions prior to 0.7.31

Discovery Timeline

  • 2026-04-23 - CVE CVE-2026-41182 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2026-41182

Vulnerability Analysis

This vulnerability is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). The security flaw exists in how the LangSmith SDK processes streaming output from Large Language Model (LLM) runs.

The redaction functions prepareRunCreateOrUpdateInputs in JavaScript and _hide_run_outputs in Python are designed to prevent sensitive data from being logged to the LangSmith platform. However, these functions only process the inputs and outputs fields on a run object and never examine the events array.

When streaming mode is enabled, each token generated by the LLM is recorded as a new_token event in the events array. Since the redaction pipeline does not inspect this array, the raw token values are transmitted and stored without any sanitization, completely bypassing the intended security controls.

Root Cause

The root cause of this vulnerability is an incomplete implementation of the output redaction feature. The redaction logic was designed to handle static input/output fields but failed to account for the streaming event pathway. The events array, which captures real-time streaming tokens, was not included in the redaction scope, creating a data leak vector that circumvents the security controls entirely.

Attack Vector

The vulnerability can be exploited through network-accessible LangSmith SDK integrations. An attacker does not need authentication or user interaction to exploit this flaw. The attack scenario involves:

  1. An application using LangSmith SDK with output redaction enabled
  2. The application processes sensitive data through LLM streaming responses
  3. Despite redaction being configured, the streaming token events capture and transmit the complete raw output
  4. Sensitive information is stored in LangSmith logs, accessible to anyone with log access

The vulnerability is exploited passively—the mere use of streaming mode with redaction enabled results in data exposure. No active exploitation code is required; the SDK's normal operation leaks the data when streaming is used.

For technical implementation details, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-41182

Indicators of Compromise

  • Presence of new_token events in LangSmith run logs containing sensitive data that should have been redacted
  • Streaming token data visible in LangSmith platform despite hideOutputs or hide_outputs being enabled
  • Unexpected sensitive information appearing in LangSmith telemetry or audit logs

Detection Strategies

  • Review LangSmith run events for any sensitive data that should have been filtered by redaction controls
  • Audit application configurations to identify deployments using streaming mode with redaction enabled
  • Implement automated scanning of LangSmith logs to detect potential data exposure patterns
  • Check SDK version numbers in dependency manifests to identify vulnerable installations

Monitoring Recommendations

  • Monitor LangSmith API traffic for streaming token events containing potentially sensitive patterns
  • Implement log analysis rules to detect sensitive data patterns in run events
  • Set up alerts for applications using affected SDK versions in production environments
  • Establish periodic audits of stored LangSmith data to identify any leaked sensitive information

How to Mitigate CVE-2026-41182

Immediate Actions Required

  • Upgrade LangSmith JavaScript SDK to version 0.5.19 or later immediately
  • Upgrade LangSmith Python SDK to version 0.7.31 or later immediately
  • Audit existing LangSmith logs for potential sensitive data exposure from streaming token events
  • Review and purge any sensitive data that may have been inadvertently stored in LangSmith

Patch Information

The vulnerability has been addressed in LangSmith JavaScript SDK version 0.5.19 and Python SDK version 0.7.31. These patched versions extend the redaction pipeline to properly process the events array, ensuring that streaming token events are also subject to output redaction controls. For additional details, see the GitHub Security Advisory.

Workarounds

  • Disable streaming mode for LLM runs that process sensitive data until patches can be applied
  • Temporarily disable LangSmith tracing entirely for applications handling highly sensitive information
  • Implement application-level filtering to prevent sensitive data from reaching LLM streaming responses
  • Consider using synchronous (non-streaming) LLM calls where redaction is properly enforced
bash
# Configuration example for upgrading affected SDKs

# For JavaScript/Node.js projects
npm update langsmith@0.5.19

# For Python projects
pip install --upgrade langsmith>=0.7.31

# Verify installed versions
npm list langsmith
pip show langsmith

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLangsmith

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40190: LangSmith SDK Prototype Pollution Flaw

  • CVE-2026-25750: LangSmith Auth Bypass Vulnerability

  • CVE-2026-25528: LangSmith Client SDKs SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English