Repository navigation
[Bugfix][Router] Upgrade aiohttp and vllm (0.33.0) to resolve router image CVEs - #1185
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates several project dependencies across pyproject.toml and various requirements files, including upgrading aiohttp, numpy, sentence-transformers, faiss-cpu, lmcache, vllm, and transformers, while removing huggingface-hub. Additionally, it updates the import path for OpenAI protocol classes in fake-openai-server.py to align with the upgraded vllm version. There are no review comments to address, and I have no further feedback to provide.
|
On x86_64/aarch64 Linux there is no conflict (e2e installs protobuf 6.33.6). I added this to [tool.uv]
environments = ["sys_platform == 'linux' and platform_machine != 's390x'"]Impact: uv only resolves this project for Linux (non-s390x). The router ships as a Linux image, so nothing we ship changes, and plain |
7a0b3a4 to
d02599d
Compare
ba73d18 to
0e8c4ea
Compare
- aiohttp 3.14.3 -> 3.14.5 - vllm 0.13.0 -> 0.32.0 (drops the ray dependency and its bundled ray_dist.jar with vulnerable guava/jackson), lmcache 0.3.11 -> 0.5.6 - numpy 2.2.6, sentence-transformers 6.2.0, faiss-cpu 1.15.1 and drop the huggingface-hub pin to satisfy the new vllm/transformers requirements - Update the perftest fake server import for vllm's moved protocol module Fixes CVE-2026-111064, CVE-2026-111066, GHSA-2g87-pp6c-29x5, CVE-2026-102554, CVE-2026-89407, CVE-2026-89425, CVE-2026-68497, CVE-2026-91776, CVE-2026-91777 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Shern Shiou Tan <[email protected]>
- vllm 0.32.0 -> 0.33.0 - uv's universal resolution in `uv sync` failed on platforms we don't ship: vllm 0.33.0 depends on nvidia-cutlass-dsl, which has no macOS/Windows wheels, and on s390x vllm pins protobuf==7.36.1 while lmcache 0.5.6 requires protobuf<7. Limit uv to Linux (non-s390x). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Shern Shiou Tan <[email protected]>
702797a to
a2de4bd
Compare
The self-hosted GPU runner's NVIDIA driver only supports CUDA 12.4, so vllm 0.33.0 (torch 2.14, CUDA 13) fails to start with "The NVIDIA driver on your system is too old". - vllm 0.33.0 -> 0.32.0 (no known OSV vulnerabilities; last release with a CUDA 12.9 build) - static-discovery e2e installs the vllm/torch CUDA 12.9 builds and overrides lmcache's cuda-python>=13 (only its pure-Python controller is used). Drop this once the runner driver supports CUDA 13. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Shern Shiou Tan <[email protected]>
a2de4bd to
7e01f0d
Compare
…pler - PyPI torchcodec 0.17.0 is built against CUDA 13 and fails to load with libnvrtc.so.13 missing next to the CUDA 12.9 torch. Pin the matching torchcodec 0.16.0+cu129 build. - flashinfer 0.7 JIT-compiles its sampling kernels with the runner's /usr/local/cuda nvcc, which predates CUDA 12.8 and rejects --compress-mode=size, so the vLLM engine fails to start. Use vLLM's PyTorch sampler instead (VLLM_USE_FLASHINFER_SAMPLER=0). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Shern Shiou Tan <[email protected]>
1313d7c to
95f4759
Compare
* [Bugfix][Router] Read vllm:kv_cache_usage_perc for KV cache usage (vllm-project#1118) Signed-off-by: Muhammad Ibrahim <[email protected]> * [Doc] Add Simplified Chinese translation (README.zh.md) (vllm-project#1136) Signed-off-by: YE <[email protected]> * [CI/Build] Run helm unittest in CI and fix two broken tests (vllm-project#1131) Signed-off-by: zjjkee <[email protected]> * [Bugfix][Router] Key request stats by dispatch, not by X-Request-Id (vllm-project#1115) Signed-off-by: David-Wu1119 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Rui Zhang <[email protected]> * [Bugfix][Router] Use least-inflight for PrefixAware below-threshold fallback (vllm-project#1089) Signed-off-by: Dundy Pasupuleti <[email protected]> * [Bugfix][Router] Keep P/D model labels when dynamic config reloads the router (vllm-project#1129) Signed-off-by: MinJun Choi <[email protected]> * [Bugfix] Match KEDA scalers to enabled model deployments (vllm-project#1142) Signed-off-by: bojiang-li <[email protected]> * [Router] added pooling route (vllm-project#1112) Signed-off-by: [email protected] <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Rui Zhang <[email protected]> * [CI] Drop host docker prune from runner-cleanup workflow (vllm-project#1174) Signed-off-by: Rui Zhang <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [Feat][Router] Add /v1/systemone and /v1/decisions routes (vllm-project#1173) Signed-off-by: Shern Shiou Tan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [CI/Build] Stop k8s routing tests when the engine pods never become ready (vllm-project#1134) Signed-off-by: MinJun Choi <[email protected]> * [Bugfix][Router] Upgrade aiohttp and vllm (0.33.0) to resolve router image CVEs (vllm-project#1185) Signed-off-by: Shern Shiou Tan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * Bump chart version to 0.1.14 (vllm-project#1190) Signed-off-by: Rui Zhang <[email protected]> --------- Signed-off-by: Muhammad Ibrahim <[email protected]> Signed-off-by: YE <[email protected]> Signed-off-by: zjjkee <[email protected]> Signed-off-by: David-Wu1119 <[email protected]> Signed-off-by: Dundy Pasupuleti <[email protected]> Signed-off-by: MinJun Choi <[email protected]> Signed-off-by: bojiang-li <[email protected]> Signed-off-by: [email protected] <[email protected]> Signed-off-by: Rui Zhang <[email protected]> Signed-off-by: Shern Shiou Tan <[email protected]> Signed-off-by: MinJun Choi <[email protected]> Signed-off-by: Rui Zhang <[email protected]> Signed-off-by: Bernardo Donadio <[email protected]> Co-authored-by: Muhammad Ibrahim <[email protected]> Co-authored-by: YE <[email protected]> Co-authored-by: Jingke zou <[email protected]> Co-authored-by: Yanze (David) Wu <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Rui Zhang <[email protected]> Co-authored-by: Dundy Pasupuleti <[email protected]> Co-authored-by: MinJun Choi <[email protected]> Co-authored-by: Bojiang Li <[email protected]> Co-authored-by: MaelvanDijk <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Shern Shiou Tan <[email protected]>
A Wiz scan of the router image flagged CVEs in aiohttp and in
ray_dist.jar(bundled Guava and Jackson). Ray isn't a direct router dependency. It came in throughvllm==0.13.0(ray[cgraph]>=2.48.0). Even the latest Ray (2.59.0) still bundles Guava 32.0.1 and Jackson 2.18.8, so bumping Ray doesn't help. vLLM stopped depending on Ray in 0.18.0, so this PR upgrades vLLM and removes Ray from the image entirely.Changes:
aiohttp3.14.3 → 3.14.5vllm0.13.0 → 0.33.0 andlmcache0.3.11 → 0.5.6. The LMCache controller API the KV-aware router uses (LMCacheControllerManager,LookupMsg,QueryInstMsg) is unchanged.numpy1.26.4 → 2.2.6 (lmcache 0.5.6 caps numpy at<=2.2.6)sentence-transformers2.2.2 → 6.2.0 andfaiss-cpu1.10.0 → 1.15.1huggingface-hubpin is dropped and the version is left to the resolverpyproject.toml: added[tool.uv] environments = ["sys_platform == 'linux' and platform_machine != 's390x'"].uv syncresolves one lockfile for every platform at once, and two platforms we don't ship failed: vLLM 0.33.0 depends onnvidia-cutlass-dsl, which has no macOS/Windows wheels, and on s390x vLLM pinsprotobuf==7.36.1while lmcache 0.5.6 requiresprotobuf<7. The router ships as a Linux image, so the image andpipinstalls are unaffected. The catch is thatuv syncon macOS is no longer supported.src/tests/perftest/fake-openai-server.py: vLLM movedvllm.entrypoints.openai.protocoltovllm.entrypoints.openai.chat_completion.protocol.CVEs addressed (versions from OSV):
Known remaining (blocked upstream by lmcache 0.5.6, the latest release):
opentelemetry-api<=1.40.0setuptools<81Other pins checked:
aiohttp3.14.5 is the latest release.numpystays at 2.2.6 because of the lmcache cap, and there are no known CVEs in that version.transformersin the test requirements stays at 5.19.0 because vLLM 0.33 requires<5.21.Testing:
uv pip install -e ".[semantic_cache,lmcache,test]"resolves and installs.rayis not installed, and the environment contains no.jarfiles.pytest src/tests --ignore=src/tests/perftest: 283 passed (run on vllm 0.32.0; not re-run after the bump to 0.33.0)uv lockresolves, andpip-auditon a fresh image-equivalent resolution shows only the known remaining CVEs above.Reviewer note:
static-discovery-e2e-testfails becausevllm serveexits withEngine core initialization failedafter dependencies install. vLLM now pulls a torch built for CUDA 13, so the GPU runner's NVIDIA driver may be too old. This is not confirmed yet.Reviewer note: the semantic cache moves to sentence-transformers 6.x and numpy 2. It only uses
SentenceTransformer(name).encode(...)and basic faiss index calls, but it has had no runtime test with a real embedding model.-swhen doinggit commit[Bugfix],[Feat], and[CI].🤖 Generated with Claude Code