Skip to main content

LangSmith SDK CVE-2026-41182

| EUVDEUVD-2026-25152 MEDIUM
Information Exposure (CWE-200)
2026-04-23 GitHub_M
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Enable output redaction in target app
  2. Delivery
    Stream LLM prompt through SDK
  3. Exploit
    SDK generates unredacted new_token events
  4. Execution
    Access LangSmith workspace or intercept SDK traffic
  5. Persist
    Extract run events array
  6. Impact
    Recover sensitive token data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Output redaction controls must be explicitly enabled (hideOutputs in JavaScript, hide_outputs in Python) for the vulnerability to manifest as a security failure. The application must use streaming LLM integrations (e.g., streaming token callbacks, token-by-token iteration) that generate new_token events, as non-streaming LLM calls do not populate the events array and thus are unaffected. Exploitation further requires the attacker to have access to run event data within the LangSmith workspace (authenticated access, workspace membership) or ability to intercept unencrypted or improperly validated API traffic between the SDK and LangSmith platform. Notably, applications that do not use the output redaction feature, do not use streaming, or are already storing sensitive data outside LangSmith (i.e., using LangSmith only for non-sensitive operational logging) are not vulnerable. The vulnerability does not affect confidentiality of inputs, only outputs/token streams, and it does not cause data loss or unauthorized modification.

Impact

CVSS 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) indicates network-accessible confidentiality impact with low attack complexity and no authentication barrier, yet the real-world risk is contextual. Exploitation requires that: (1) an application explicitly enables output redaction because it handles sensitive data (e.g., PII, secrets, medical records), (2) the application uses streaming LLM calls, and (3) an attacker can access the LangSmith workspace or intercepted API traffic. The low CVSS score reflects limited scope (confidentiality only, no integrity or availability impact) and the requirement that the attacker must already have some visibility into run events-this is not a vulnerability that exposes data to arbitrary internet actors without authentication to LangSmith itself. However, for organizations using LangSmith as a secure logging backend for sensitive workloads, this represents a critical logic bypass: the redaction feature they depend on silently fails for streaming output. EPSS score not provided, but exploitation probability is moderate to high within affected deployments since attackers need only access to the LangSmith platform (via compromised credentials, insider threat, or shared workspace) or network interception of SDK-to-platform traffic. No CISA KEV status provided; patch is available, indicating this is a vendor-confirmed logic defect rather than an exploited zero-day. Organizations that do not use output redaction or do not use streaming integrations are unaffected.

Exploit ScenarioDerived

An attacker with legitimate or compromised access to a LangSmith workspace (or positioned to intercept SDK-to-platform HTTPS traffic via network compromise) observes that an organization has enabled output redaction on an application handling customer PII. The attacker streams a prompt through the vulnerable LangSmith SDK that causes an LLM to output customer email addresses and phone numbers. Although the application's redaction rules would filter this from the outputs field, the raw tokens appear unredacted in the run's events array as new_token objects. The attacker exports the run data and recovers the complete streamed output, bypassing the intended security control.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 23, 2026

LangSmith Client SDKs in JavaScript (prior to 0.5.19) and Python (prior to 0.7.31) fail to apply output redaction controls to streaming token events, allowing sensitive LLM-generated content to leak into LangSmith platform storage despite hideOutputs/hide_outputs being enabled. Unauthenticated remote attackers can intercept or access unredacted streamed tokens if they gain visibility into run events, bypassing the intended confidentiality controls.

RemediationAI

Vendor-released patch: Upgrade to LangSmith JavaScript SDK version 0.5.19 or later, and Python SDK version 0.7.31 or later. Both versions restore redaction coverage to the events array, ensuring new_token events are processed through the redaction pipeline. Organizations should apply these upgrades immediately if they rely on the hideOutputs (JavaScript) or hide_outputs (Python) feature for compliance or data protection. No workarounds are available short of patching - disabling streaming integrations entirely would preserve redaction guarantees but is not practical for production LLM applications. Interim mitigations include restricting LangSmith workspace access via IAM, encrypting network traffic between SDK and LangSmith platform with TLS, and monitoring LangSmith workspace access logs for unexpected data access. See GitHub security advisory GHSA-rr7j-v2q5-chgv for detailed patch notes.

Affected VersionsENISA

langsmith-sdk < 0.5.19
langsmith-sdk < 0.7.31

Affected Packages

npm langsmith fix: 0.5.19, 0.7.31
pypi langsmith fix: 0.5.19, 0.7.31
euvd langsmith_sdk fix: 0.5.19, 0.7.31

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The LangSmith SDKs implement output redaction through prepareRunCreateOrUpdateInputs (JavaScript) and _hide_run_outputs (Python) functions that sanitize the inputs and outputs fields on run objects before transmission to the LangSmith platform. However, when an LLM generates streaming output (common in modern LLM integrations), each token chunk is recorded as a separate new_token event appended to the events array within the run object. The redaction pipeline processes only the top-level inputs and outputs fields and completely bypasses the events array, causing raw token values to persist unredacted. This is fundamentally an information disclosure flaw (CWE-200) where trust boundaries fail - applications assume redaction applies uniformly across all output channels, but the streaming event path operates outside the redaction mechanism. The vulnerability affects the langsmith-sdk package across its Python and JavaScript implementations.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
SUSE MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

3
Patch released
Apr 29, 2026 - 20:46 nvd
Patch available
Patch available
Apr 23, 2026 - 06:16 EUVD
CVE Published
Apr 23, 2026 - 00:14 nvd
MEDIUM 5.3

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Medium

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy