Skip to content

chore(deps): update dependency langsmith to v0.8.18 [security]#440

Open
a-klos wants to merge 1 commit into
mainfrom
renovate/pypi-langsmith-vulnerability
Open

chore(deps): update dependency langsmith to v0.8.18 [security]#440
a-klos wants to merge 1 commit into
mainfrom
renovate/pypi-langsmith-vulnerability

Conversation

@a-klos

@a-klos a-klos commented Jul 19, 2026

Copy link
Copy Markdown
Member

This PR contains the following updates:

Package Change Age Confidence
langsmith 0.8.8 -> 0.8.18 age confidence

GitHub Vulnerability Alerts

GHSA-f4xh-w4cj-qxq8

Summary

An attacker who can send an HTTP request to a server running the LangSmith SDK's TracingMiddleware can cause that server to read an arbitrary file from its local filesystem and upload the contents to LangSmith as a trace attachment. Depending on how the distributed trace system is deployed, triggering a read may not require authentication. Retrieving the contents requires read access to the LangSmith workspace the traces are sent to. The net effect is a trust-boundary crossing: a party with workspace trace-read access (for example a low-privilege workspace member, a contractor, or a compromised teammate account) gains the ability to read files from any server running TracingMiddleware, a capability outside that workspace's intended trust boundary.

Impact

Confidentiality (High): arbitrary read of files accessible to the server process, exposed to anyone with workspace trace-read access.

Details

Two defects combine. A field supplied through a tracing-propagation header was merged into the run without validation, allowing injection of run attributes including attachments (CWE-346). A type check intended to gate filesystem access did not match the type of the decoded input, so the guard never engaged (CWE-843). As a result, an attacker-named file is opened by the server and uploaded as a trace attachment by the background tracing thread (CWE-22).

Who can exploit this

  • Anyone reachable by HTTP can trigger the file read. Depending on how the distributed trace system is deployed, triggering may not require authentication.
  • Retrieving the file contents requires read access to the destination LangSmith workspace. The upload uses the server's own configured API key and workspace, which the attacker cannot redirect, so a zero-access outsider cannot retrieve the result; a workspace member, or anyone who has compromised one, can.

Remediation

Upgrade the Python SDK to >= 0.8.18.

Workarounds

Until upgrading, do not expose TracingMiddleware to untrusted HTTP traffic, and limit workspace trace-read access to trusted members.

Credits

First reported by @​Ryu7zz.


Release Notes

langchain-ai/langsmith-sdk (langsmith)

v0.8.18

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.8.17...v0.8.18

v0.8.17

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.8.16...v0.8.17

v0.8.16

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.8.15...v0.8.16

v0.8.15

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.8.14...v0.8.15

v0.8.14

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.8.13...v0.8.14

v0.8.12

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.8.11...v0.8.12

v0.8.11

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.8.10...v0.8.11

v0.8.10

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.8.9...v0.8.10

v0.8.9

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.8.8...v0.8.9


Configuration

📅 Schedule: Branch creation - "" in timezone UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@a-klos a-klos added python Pull requests that update python code renovate labels Jul 19, 2026
@a-klos
a-klos force-pushed the renovate/pypi-langsmith-vulnerability branch from 6854a50 to 764ee5a Compare July 19, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update python code renovate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants