Skip to content

chore(release): backport #35835, #35844 to rc/1.96.0 and refresh dependency pins - #36294

Merged
yuneng-berri merged 7 commits into
rc/1.96.0from
litellm_backport_rc_1_96_0_bp-rc196-0808
Aug 8, 2026
Merged

yuneng-berri merged 7 commits into
rc/1.96.0from
litellm_backport_rc_1_96_0_bp-rc196-0808

Conversation

@yuneng-berri

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • rc/1.96.0 predates two fixes already merged to staging
  • The line's dependency pins lag staging by five days
  • Its scanner gate reports 19 findings; staging reports none

How it solves it:

  • Cherry-picks both merged staging PRs onto the line
  • Refreshes gitpython, cryptography, h2 and four dashboard packages
  • Carries staging's two scanner exceptions verbatim

Relevant issues

rc/1.96.0 was cut at v1.96.0-rc.1 on 2026-08-03, so it misses two changes that landed on staging the next day and have since shipped in v1.97.0-dev.1 and v1.97.0-dev.2. #35835 routes the MCP session token store through the shared storage helper and stops keeping a refresh token in browser storage. #35844 refreshes the grpc and golang.org/x modules used by the terraform provider

Alongside the picks this brings the line's dependency pins up to the same resolution staging already ships. The line's scanner run reported 19 findings across 8 packages, against none on staging, purely because the line was cut before those pins moved. After this PR the line resolves gitpython, cryptography, h2 and hpack at exactly staging's versions, and the dashboard's js-yaml, brace-expansion, postcss and nanoid are refreshed through the same package.json overrides staging uses. The two pypdf entries in osv-scanner.toml are carried across unchanged, so the file is now byte-identical to staging's; both are time-boxed and drop out once the fix leaves the three-day dependency cooldown

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review

Screenshots / Proof of Fix

Type

🧹 Refactoring
🚄 Infrastructure

Changes

Picks, in staging merge order:

Dependency commits, each one revertible on its own:

  • chore(deps): bump gitpython to 3.1.58
  • chore(deps): bump h2 to 4.4.1, which carries hpack to 4.2.0 as its own declared floor
  • chore(deps): bump cryptography to 50.0.0
  • chore(deps): bump js-yaml, brace-expansion, postcss and nanoid in the dashboard
  • chore(deps): carry the pypdf scanner exceptions from staging

No version bump. The line's pyproject stays at 1.96.0, which is unreleased: there is no v1.96.0 image, tag or release branch, so these ride the pending version rather than stranding a new one

Adaptation note for #35835: staging renamed create_mcp_server.tsx to CreateMCPServer.tsx after this line was cut, so the pick lands on the line's original filename. The rename was detected automatically and the change is path-only. After normalising the path, the picked diff is identical to the source apart from the blob hashes and one hunk offset, so no content diverged. #35844 is verbatim

cryptography is the one entry that needed a manifest change rather than a lock refresh. The line capped it below 49 and mlflow caps it below 50 across every reachable release, so widening the range alone cannot resolve. This mirrors staging exactly, widening the range and adding the matching uv override. That override is read by uv only, so anyone installing litellm[proxy,mlflow] with pip keeps the previous resolution, which is equally true on staging today

One follow-up belongs to whoever cuts the next rc: #35835 changes production .tsx, and the proxy serves the prebuilt bundle committed under litellm/proxy/_experimental/out/, so the change does not reach users until that bundle is rebuilt on this line. That rebuild is deliberately not in this PR, since it lands hundreds of generated files and is normally cut as its own change

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

@greptile-apps

greptile-apps Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This backport moves MCP browser tokens onto the shared session-storage helper, stops retaining refresh tokens in browser-held token data, and refreshes Python, Go, and dashboard dependency pins

  • Adds regression coverage for MCP token storage
  • Updates cryptography and associated uv resolution metadata
  • Refreshes Terraform provider and dashboard dependencies
  • Adds time-boxed scanner exceptions

Confidence Score: 5/5

The PR appears safe to merge with no concrete blocking or independently actionable non-blocking issue identified

The MCP token changes remain consistent across storage, callers, cleanup, and server-side refresh behavior, while the dependency manifests and lockfiles are aligned for supported targets

Important Files Changed

Filename Overview
ui/litellm-dashboard/src/utils/mcpTokenStore.ts Routes MCP access-token values through shared encoded session storage and excludes refresh tokens without changing key scoping or cleanup behavior
ui/litellm-dashboard/src/utils/mcpTokenStore.test.ts Adds focused regression checks that refresh tokens and plaintext access-token payloads are not persisted
ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/create_mcp_server.tsx Stops forwarding OAuth refresh tokens into browser-held MCP session state
ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_server_edit.tsx Aligns edit and reauthorization flows with the browser-token storage policy
ui/litellm-dashboard/src/hooks/useToolsOAuthFlow.tsx Excludes refresh credentials when storing tool OAuth access tokens in the browser
pyproject.toml Widens the proxy cryptography range and adds the uv override needed to resolve cryptography 50
uv.lock Refreshes dependency resolution and cryptography artifacts consistently with the manifest
terraform/provider/go.mod Refreshes gRPC, OpenTelemetry, and golang.org/x dependency versions
ui/litellm-dashboard/package.json Refreshes security-related dashboard dependency overrides and the direct PostCSS pin
osv-scanner.toml Adds two explicitly time-boxed pypdf advisory exceptions pending availability under the dependency cooldown

Reviews (1): Last reviewed commit: "chore(deps): carry the pypdf scanner exc..." | Re-trigger Greptile

@yuneng-berri
yuneng-berri merged commit 2c2e9fd into rc/1.96.0 Aug 8, 2026
7 checks passed
@yuneng-berri
yuneng-berri deleted the litellm_backport_rc_1_96_0_bp-rc196-0808 branch August 8, 2026 19:29
Comment thread osv-scanner.toml
@@ -1,3 +1,13 @@
[[IgnoredVulns]]
id = "GHSA-fwg2-594c-jp42"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low: PDF denial-of-service advisories are suppressed

The lockfile resolves pypdf 6.14.2, and this configuration ignores two advisories affecting its text-extraction paths. Processing a crafted PDF could consume excessive CPU or memory. Both issues are fixed in 6.15.0; retain scanner enforcement and upgrade when the exclusion expires on August 9, 2026, or backport the fixes before releasing.

@veria-ai

veria-ai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

PR overview

This release maintenance PR backports changes from #35835 and #35844 to the rc/1.96.0 branch and refreshes dependency pins and scanner configuration.

One dependency issue remains open: the pinned pypdf version can consume excessive CPU or memory when extracting text from a crafted PDF, while the relevant advisories are excluded from scanning. Exploitation depends on the application processing attacker-controlled PDFs, and the impact is limited to resource exhaustion in that path. Upgrading to pypdf 6.15.0 or backporting the fixes would resolve the concern.

Open issues (1)

Fixed/addressed: 0 · PR risk: 4/10

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.

1 participant