Access of Resource Using Incompatible Type ('Type Confusion') Affecting langsmith package, versions [,0.8.18)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th 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 Learn

Learn about Access of Resource Using Incompatible Type ('Type Confusion') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LANGSMITH-17391446
  • published21 Jun 2026
  • disclosed19 Jun 2026
  • creditRyu7z

Introduced: 19 Jun 2026

CVE-2026-59152  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-346  (opens in a new tab)
CWE-843  (opens in a new tab)

How to fix?

Upgrade langsmith to version 0.8.18 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 Access of Resource Using Incompatible Type ('Type Confusion') via the file attachments handling. An attacker can access local files on the server and have their contents uploaded to an external service by sending crafted HTTP requests that manipulate tracing-propagation headers.

Note: This is only exploitable if the attacker can send HTTP requests to the server and has read access to the workspace where traces are stored.

Workaround

This vulnerability can be mitigated by not exposing TracingMiddleware to untrusted HTTP traffic and limiting workspace trace-read access to trusted members.

CVSS Base Scores

version 4.0
version 3.1