Skip to content

fix(deps): bump litellm cap to >=1.83.7 for additional CVE remediation#6645

Closed
cwest wants to merge 2 commits intogoogleapis:mainfrom
cwest:topic/bump-litellm-cap
Closed

fix(deps): bump litellm cap to >=1.83.7 for additional CVE remediation#6645
cwest wants to merge 2 commits intogoogleapis:mainfrom
cwest:topic/bump-litellm-cap

Conversation

@cwest
Copy link
Copy Markdown
Contributor

@cwest cwest commented Apr 27, 2026

Summary

Bumps the litellm cap in the evaluation extra from
<1.83.7 to <1.83.15, and lifts the lower bound from >=1.75.5 to
>=1.83.7. Drops the now-redundant !=1.82.7, !=1.82.8 exclusions
(subsumed by the new lower bound; supply-chain history preserved in
git blame and #6617).

Why

The current <1.83.7 cap (set in #6617 to allow CVE-2026-35030
remediation in litellm 1.83.0) excludes four additional CVEs patched
in litellm 1.83.7, disclosed 2026-04-11 through 2026-04-24:

Advisory Severity Patched in
GHSA-r75f-5x8p-qvmc critical 1.83.7
GHSA-jjhc-v7c2-5hh6 critical 1.83.7
GHSA-xqmj-j6mv-4862 high 1.83.7
GHSA-69x8-hrgq-fjj8 high 1.83.7

(Plus GHSA-53mr-6c8q-9789,
high, patched in 1.83.0, already covered by the existing lower bound.)

Trigger

google/adk-python PR
#5489 pins
litellm>=1.83.7, <=1.83.14 to ship these CVE patches to ADK users.
Its CI currently fails with a pip resolver conflict because
google-cloud-aiplatform[evaluation] (pulled in via the eval
extra) caps litellm<1.83.7. The bump was requested in
the ADK PR review by @sasha-gitg.

Code adaptation already shipped

The vertexai/_genai/_evals_common.py adaptation for litellm 1.83.x
(switch from litellm.utils.get_valid_models() to
litellm.get_llm_provider()) was merged in
#6599 as
ac5a5e4. So this PR is purely a version-pin change; no source or
test changes are needed.

Verification

Run from a clean checkout against the new pin:

$ nox -s lint
nox > Session lint was successful in 39 seconds.

$ nox -s lint_setup_py
nox > Session lint_setup_py was successful.

$ pytest tests/unit/vertexai/genai/test_evals.py -k litellm -q
4 passed, 266 deselected, 1 warning in 1.98s    # litellm==1.83.7
4 passed, 266 deselected, 1 warning in 14.68s   # litellm==1.83.14

Resolver semantics for >=1.83.7, <1.83.15:

  • Admits: 1.83.7, 1.83.7.post1, ..., 1.83.14, 1.83.14.post1
  • Rejects: 1.83.6, 1.83.7rc1, 1.83.15, any pre-release of admitted versions

Related

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.

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).
@cwest cwest requested a review from a team as a code owner April 27, 2026 13:54
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Apr 27, 2026
@matthew29tang matthew29tang added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 27, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 27, 2026
@matthew29tang matthew29tang self-assigned this Apr 27, 2026
@matthew29tang matthew29tang added the ready to pull Ready to be merged into the codebase. label Apr 27, 2026
@cwest
Copy link
Copy Markdown
Contributor Author

cwest commented Apr 27, 2026

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:

PR Python 3.9 unit Python 3.14 unit
#6620
#6604
#6634
#6646

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.

@matthew29tang
Copy link
Copy Markdown
Contributor

Yes, the failing tests are fine and not blocking for this PR. I'm pulling it in internally now.

copybara-service Bot pushed a commit that referenced this pull request Apr 27, 2026
--
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
@matthew29tang
Copy link
Copy Markdown
Contributor

Merged as 3bd0b25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vertex-ai Issues related to the googleapis/python-aiplatform API. ready to pull Ready to be merged into the codebase. size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please repin litellm to >1.83

3 participants