Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

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

rayhan8b793ee14823
diff --git a/pyproject.toml b/pyproject.toml
index 348cdd9651..21a2c49a7d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -157,12 +157,11 @@ dependencies = [
# "xxhash>=3.5.0,<4.0.0",
# "trio>=0.17.0,<0.29.0",
# "click>=8.1.8",
- # 1.88.0 ships a broken `litellm.integrations.custom_logger`
- # (imports `AgenticLoopPlan` from a sibling types module where the
- # symbol is missing — see PR #15952 CI run 27414495913), and the
- # 1.82.6/1.82.7/1.82.8 minors have a broken `litellm.caching.caching`
- # import chain. Pin to a single known-good 1.82.x release.
- "litellm==1.82.5",
+ # litellm < 1.84.0 vulnerable to multiple CVE's. Previously pinned to 1.82.5 due to broken
+ # imports in 1.82.6–1.82.8 (caching) and 1.88.0 (custom_logger); both
+ # issues are resolved in 1.84.0. Exact pin retained due to litellm's
+ # history of introducing regressions on minor bumps.
+ "litellm==1.84.0",
# "pip>=25.2",
# "imageio-ffmpeg>=0.6.0",
# "cryptography==46.0.3",
diff --git a/uv.lock b/uv.lock
index fb065c9949..9a41aa98de 100644
--- a/uv.lock
+++ b/uv.lock
@@ -3391,7 +3391,7 @@ wheels = [
[[package]]
name = "litellm"
-version = "1.82.5"
+version = "1.84.0"
source = { registry = "https://mirrors.aliyun.com/pypi/simple" }
dependencies = [
{ name = "aiohttp" },
@@ -3407,9 +3407,9 @@ dependencies = [
{ name = "tiktoken" },
{ name = "tokenizers" },
]
-sdist = { url = "https://mirrors.aliyun.com/pypi/packages/d7/f0/ec42ee14b388ce1d08a1df638f894ed7f1e6ac35b9daf0588ff7f7d52262/litellm-1.82.5.tar.gz", hash = "sha256:7988a9b48c8ccd9e5ebced80a4dfce9ce87083b303c3f67082450a4ad6dd312f" }
+sdist = { url = "https://mirrors.aliyun.com/pypi/packages/dd/e9/8941b7e72a187000561d932c0f2f2ed2b0fd080dfc33ba6e05961d45ca7d/litellm-1.84.0.tar.gz", hash = "sha256:b8ad0cbea11a5941b18d5af973017a340abd3d3ab41cb86e5401b970626d71a6" }
wheels = [
- { url = "https://mirrors.aliyun.com/pypi/packages/68/1f/b6c8043eec81eade53a4d0e15a50b788ab0e82661e01a25e0b8536a4dca0/litellm-1.82.5-py3-none-any.whl", hash = "sha256:e1012ab816352215c4e00776dd48b0c68058b537888a8ff82cca62af19e6fb11" },
+ { url = "https://mirrors.aliyun.com/pypi/packages/01/a6/77fa1bbf5e42eb596b06318b3f7e6af5d0f44028046d1d598c6a595d028f/litellm-1.84.0-py3-none-any.whl", hash = "sha256:2a58d6041e6aa27d1a28dc8d8828ab500fef1a00ef74ca65e60899035010c2f2" },
]
[[package]]
@@ -8229,7 +8229,7 @@ requires-dist = [
{ name = "langgraph", specifier = "==1.2.0" },
{ name = "lark-oapi", specifier = ">=1.2.0" },
{ name = "line-bot-sdk", specifier = ">=3.0.0" },
- { name = "litellm", specifier = "==1.82.5" },
+ { name = "litellm", specifier = "==1.84.0" },
{ name = "mammoth", specifier = ">=1.11.0" },
{ name = "markdown", specifier = ">=3.8.1,<4.0.0" },
{ name = "markdown-to-json", specifier = "==2.1.1" },