CVE-2026-41182
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedLangSmith 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe LangSmith Client SDKs (JavaScript and Python) have a flaw where output redaction controls (hideOutputs/hide_outputs) do not apply to streaming token events. When LLM runs produce streaming output, each chunk is recorded as a new_token event containing raw token values in the events array, bypassing the redaction pipeline that only processes the inputs and outputs fields.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify LangSmith SDK version in useRun 'npm list langsmith' for JavaScript or 'pip show langsmith' for Python to see the installed version numberAffected if The installed version is below 0.5.19 (JavaScript) or below 0.7.31 (Python)
-
Verify streaming is enabled in your LLM callsSearch codebase for streaming-related parameters such as 'stream=True', 'stream: true', 'streaming=true', or method calls that yield streaming chunksAffected if Streaming is enabled and the SDK version is vulnerable
-
Inspect run event data for new_token entriesQuery LangSmith API or export run data and examine the events array - look for objects with event type 'new_token' that contain raw token content in the 'token' or 'text' fieldAffected if The events array contains 'new_token' events with unredacted/raw token values when hideOutputs/hide_outputs is enabled
-
Check if output redaction is configuredSearch configuration for 'hideOutputs' (JavaScript) or 'hide_outputs' (Python) settings in your LangSmith initialization or client setupAffected if Redaction is configured but streaming is also in use, creating a false sense of security
-
Compare affected version ranges to your installationDocument your exact SDK version and confirm it falls before 0.5.19 (JS) or 0.7.31 (Python)Affected if Version is below the fixed releases and streaming with output redaction is in use
You are affected if you use LangSmith SDK versions below 0.5.19 (JavaScript) or below 0.7.31 (Python) with streaming enabled and have hideOutputs/hide_outputs configured, as your streaming token events will contain unredacted data.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade to LangSmith JavaScript SDK version 0.5.19 or later, and Python SDK version 0.7.31 or later. Audit existing run events for any sensitive data that may have been leaked prior to the upgrade.
JavaScript SDK: version 0.5.19 or later; Python SDK: version 0.7.31 or later
- For JavaScript/TypeScript projects: Run `npm install @langchain/langsmith@^0.5.19` or update the dependency in package.json to version 0.5.19 or higher
- For Python projects: Run `pip install langsmith>=0.7.31` or update the dependency in requirements.txt/pyproject.toml to version 0.7.31 or higher
- After upgrading, verify the version installed matches or exceeds the fixed release by running `npm list @langchain/langsmith` (JS) or `pip show langsmith` (Python)
- Test that streaming LLM responses are properly redacted when hideOutputs/hide_outputs is enabled
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,328.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-41182 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-41182 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data