Skip to content

Update dependency langsmith to v0.7.31 [SECURITY]#487

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pypi-langsmith-vulnerability
Open

Update dependency langsmith to v0.7.31 [SECURITY]#487
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pypi-langsmith-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Apr 16, 2026

This PR contains the following updates:

Package Change Age Confidence
langsmith 0.7.200.7.31 age confidence

GitHub Vulnerability Alerts

GHSA-rr7j-v2q5-chgv

Summary

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.

Details

Both JS and Python SDKs are affected. The same pattern exists in both:

  • JS SDK: traceable.ts:997-1003 and traceable.ts:1044-1050
  • Python SDK: run_helpers.py:1924 and run_helpers.py:1996

In both SDKs, new_token events with raw kwargs.token values are added during streaming, and the redaction pipeline (hideOutputs in JS, hide_outputs in Python) only processes inputs/outputs — never events.

Severity
  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

LangSmith SDK: Streaming token events bypass output redaction

GHSA-rr7j-v2q5-chgv

More information

Details

Summary

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.

Details

Both JS and Python SDKs are affected. The same pattern exists in both:

  • JS SDK: traceable.ts:997-1003 and traceable.ts:1044-1050
  • Python SDK: run_helpers.py:1924 and run_helpers.py:1996

In both SDKs, new_token events with raw kwargs.token values are added during streaming, and the redaction pipeline (hideOutputs in JS, hide_outputs in Python) only processes inputs/outputs — never events.

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

langchain-ai/langsmith-sdk (langsmith)

v0.7.31

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.30...v0.7.31

v0.7.30

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.29...v0.7.30

v0.7.29

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.28...v0.7.29

v0.7.28

Compare Source

What's Changed
New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.7.27...v0.7.28

v0.7.27

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.7.26...v0.7.27

v0.7.26

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.25...v0.7.26

v0.7.25

Compare Source

What's Changed
New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.7.24...v0.7.25

v0.7.24

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.23...v0.7.24

v0.7.23

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.7.22...v0.7.23

v0.7.22

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.21...v0.7.22

v0.7.21

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.20...v0.7.21


Configuration

📅 Schedule: (in timezone US/Eastern)

  • Branch creation
    • ""
  • 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/pypi-langsmith-vulnerability branch from 8108543 to 529a898 Compare April 16, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants