Skip to content

fix: remediate litellm CVEs by upgrading from 1.82.5 to 1.84.0 - #17448

Merged
yingfeng merged 1 commit into
infiniflow:mainfrom
Nordix:fix/litellm
Jul 27, 2026
Merged

yingfeng merged 1 commit into
infiniflow:mainfrom
Nordix:fix/litellm

Conversation

@rayhanest

Copy link
Copy Markdown
Contributor

Summary

Remediates nine litellm CVEs (3 CRITICAL, 6 HIGH) by upgrading the exact pin from ==1.82.5 to ==1.84.0 in pyproject.toml.

CVE Severity Fixed in
CVE-2026-35030 CRITICAL 1.83.0
CVE-2026-42208 CRITICAL 1.83.7
CVE-2026-49468 CRITICAL 1.84.0
CVE-2026-35029 HIGH 1.83.0
CVE-2026-40217 HIGH 1.83.10
CVE-2026-42203 HIGH 1.83.7
CVE-2026-42271 HIGH 1.83.7
CVE-2026-47101 HIGH 1.83.14
CVE-2026-47102 HIGH 1.83.10

litellm was pinned to ==1.82.5 because versions 1.82.6 - 1.82.8 had a broken litellm.caching.caching import chain, and 1.88.0 had a broken litellm.integrations.custom_logger import.
Both issues are resolved in 1.84.0.
The exact pin is retained (rather than a range) due to litellm's history of introducing regressions on minor bumps.

Verification

  • Verified all litellm import paths RAGFlow uses:
    • import litellm → OK
    • litellm.acompletion / litellm.completion → present
    • from litellm import logging → OK
    • from litellm.caching import caching → OK (previously broken in 1.82.6 - 1.82.8)
    • from litellm.integrations import custom_logger → OK (previously broken in 1.88.0)
  • Reviewed v1.84.0 release notes → all behaviour changes are proxy-server-side; RAGFlow uses litellm as an in-process library only
  • RAGFlow's call pattern (litellm.acompletion(**args, drop_params=True, timeout=...)) is unchanged in 1.84.0.

Testing

  • Full unit test suite passes
  • Import checks verified
  • Previously broken import paths (litellm.caching.caching, litellm.integrations.custom_logger) confirmed fixed

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 27, 2026
@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e4ae8b4c-7b93-4902-95b9-ee1a03e2e3c8

📥 Commits

Reviewing files that changed from the base of the PR and between 76acd49 and 3a40859.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pyproject.toml

📝 Walkthrough

Walkthrough

The LiteLLM dependency pin in pyproject.toml changes from 1.82.5 to 1.84.0, with updated comments describing earlier import and caching regressions.

Changes

LiteLLM dependency update

Layer / File(s) Summary
Update LiteLLM dependency pin
pyproject.toml
The pinned LiteLLM version changes from 1.82.5 to 1.84.0, and the explanatory comment is updated to describe resolved earlier issues.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested labels: 🌈 python, ci

Suggested reviewers: xugangqiang

Poem

I’m a rabbit with paws so neat,
I bumped the pin to make builds sweet.
Old cache troubles hop away,
New LiteLLM joins the hay.
Carrots cheer the cleaner file! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: upgrading litellm to 1.84.0 to fix CVEs.
Description check ✅ Passed The description includes the required Summary section and adds useful background, verification, and testing details.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@yingfeng yingfeng added the ci Continue Integration label Jul 27, 2026
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.65%. Comparing base (1ae1dd1) to head (3a40859).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #17448   +/-   ##
=======================================
  Coverage   90.65%   90.65%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          650      650           
  Misses         39       39           
  Partials       28       28           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yingfeng
yingfeng merged commit 8b793ee into infiniflow:main Jul 27, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants