fix(deps): bump litellm cap to >=1.83.7 for additional CVE remediation#6645
fix(deps): bump litellm cap to >=1.83.7 for additional CVE remediation#6645cwest wants to merge 2 commits intogoogleapis:mainfrom
Conversation
The current cap of <1.83.7 (set in googleapis#6617) clears CVE-2026-35030 in litellm 1.83.0 but excludes four additional CVEs patched in 1.83.7: GHSA-r75f-5x8p-qvmc, GHSA-jjhc-v7c2-5hh6, GHSA-xqmj-j6mv-4862, GHSA-69x8-hrgq-fjj8 (disclosed 2026-04-11/24). Required by google/adk-python#5489, which pins litellm>=1.83.7,<=1.83.14 in its own dependencies and currently fails to install alongside google-cloud-aiplatform[evaluation] because of this cap. Requested by @sasha-gitg in the ADK PR review. The code adaptation for litellm 1.83.x already shipped in googleapis#6599 (vertexai/_genai/_evals_common.py via get_llm_provider), so this is purely a version-pin change. Verified: nox -s lint and nox -s lint_setup_py pass; the litellm-touching tests in tests/unit/vertexai/genai/test_evals.py pass against installed litellm at both 1.83.7 (lower bound) and 1.83.14 (upper bound).
|
The two failing presubmits (Unit Tests Python 3.9 and 3.14) look like environmental issues on this repo, not anything in this change. Same pair fails on every other recent open PR I checked:
The other Python 3.9 jobs on those PRs (Samples - Python 3.9, Unit Tests LangChain Python 3.9) all pass, so it's specifically the Presubmit Unit Tests pipeline at the bookend Python versions. 3.9 makes sense given #6648 ("Removing Python 3.9 support due to EOL") is open. 3.14 is presumably the symmetric newest-version problem. This PR is a one-line setup.py change to the litellm pin. All 6 GitHub Actions checks pass; every other Kokoro presubmit (Lint+Coverage, Unit Tests 3.10–3.13, all LangChain/Ray variants, Samples) passes too. Happy to wait. cc @sasha-gitg / @matthew29tang in case a rerun helps once the env is sorted. |
|
Yes, the failing tests are fine and not blocking for this PR. I'm pulling it in internally now. |
-- 68eaca8 by Casey West <caseywest@google.com>: fix(deps): bump litellm cap to >=1.83.7 for additional CVE remediation The current cap of <1.83.7 (set in #6617) clears CVE-2026-35030 in litellm 1.83.0 but excludes four additional CVEs patched in 1.83.7: GHSA-r75f-5x8p-qvmc, GHSA-jjhc-v7c2-5hh6, GHSA-xqmj-j6mv-4862, GHSA-69x8-hrgq-fjj8 (disclosed 2026-04-11/24). Required by google/adk-python#5489, which pins litellm>=1.83.7,<=1.83.14 in its own dependencies and currently fails to install alongside google-cloud-aiplatform[evaluation] because of this cap. Requested by @sasha-gitg in the ADK PR review. The code adaptation for litellm 1.83.x already shipped in #6599 (vertexai/_genai/_evals_common.py via get_llm_provider), so this is purely a version-pin change. Verified: nox -s lint and nox -s lint_setup_py pass; the litellm-touching tests in tests/unit/vertexai/genai/test_evals.py pass against installed litellm at both 1.83.7 (lower bound) and 1.83.14 (upper bound). COPYBARA_INTEGRATE_REVIEW=#6645 from cwest:topic/bump-litellm-cap 638e6fa PiperOrigin-RevId: 906452948
|
Merged as 3bd0b25 |
Summary
Bumps the
litellmcap in theevaluationextra from<1.83.7to<1.83.15, and lifts the lower bound from>=1.75.5to>=1.83.7. Drops the now-redundant!=1.82.7, !=1.82.8exclusions(subsumed by the new lower bound; supply-chain history preserved in
git blame and #6617).
Why
The current
<1.83.7cap (set in #6617 to allow CVE-2026-35030remediation in litellm 1.83.0) excludes four additional CVEs patched
in litellm 1.83.7, disclosed 2026-04-11 through 2026-04-24:
(Plus GHSA-53mr-6c8q-9789,
high, patched in 1.83.0, already covered by the existing lower bound.)
Trigger
google/adk-pythonPR#5489 pins
litellm>=1.83.7, <=1.83.14to ship these CVE patches to ADK users.Its CI currently fails with a pip resolver conflict because
google-cloud-aiplatform[evaluation](pulled in via theevalextra) caps
litellm<1.83.7. The bump was requested inthe ADK PR review by @sasha-gitg.
Code adaptation already shipped
The
vertexai/_genai/_evals_common.pyadaptation for litellm 1.83.x(switch from
litellm.utils.get_valid_models()tolitellm.get_llm_provider()) was merged in#6599 as
ac5a5e4. So this PR is purely a version-pin change; no source ortest changes are needed.
Verification
Run from a clean checkout against the new pin:
Resolver semantics for
>=1.83.7, <1.83.15:Related
<1.83.7cap and explicitly cited "internal guidance ... stricterupper bound on a minor version" at the time. The four follow-on CVEs
in 1.83.7 (and the ADK consumer needing them) is the new input.
I understand this repo lands external dep changes via Copybara
re-author; this PR is intended primarily as a complete, ready-to-
re-land artifact for whichever path is most convenient.