Insertion of Sensitive Information into Log File Affecting langsmith package, versions <0.5.19


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-LANGSMITH-16082039
  • published16 Apr 2026
  • disclosed16 Apr 2026
  • creditRyu7zz

Introduced: 16 Apr 2026

CVE-2026-41182  (opens in a new tab)
CWE-359  (opens in a new tab)
CWE-532  (opens in a new tab)

How to fix?

Upgrade langsmith to version 0.5.19 or higher.

Overview

langsmith is a Client library to connect to the LangSmith Observability and Evaluation Platform.

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File through the Client handling of events. An attacker can bypass redaction controls and exfiltrate LLM output by supplying streaming events with kwargs content that gets uploaded as part of a run. This leaks token-by-token model output into traced events, exposing prompt or response data to anyone with access to the stored run records.

CVSS Base Scores

version 4.0
version 3.1