Skip to content

[Bugfix][Router] Upgrade aiohttp and vllm (0.33.0) to resolve router image CVEs - #1185

Merged
ruizhang0101 merged 4 commits into
vllm-project:mainfrom
shernshiou:security/bump-aiohttp-vllm
Nov 7, 2026
Merged

ruizhang0101 merged 4 commits into
vllm-project:mainfrom
shernshiou:security/bump-aiohttp-vllm

Conversation

@shernshiou

@shernshiou shernshiou commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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 through vllm==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:

  • aiohttp 3.14.3 → 3.14.5
  • vllm 0.13.0 → 0.33.0 and lmcache 0.3.11 → 0.5.6. The LMCache controller API the KV-aware router uses (LMCacheControllerManager, LookupMsg, QueryInstMsg) is unchanged.
  • The new vLLM requires numpy 2 and newer transformers/huggingface-hub, so:
    • numpy 1.26.4 → 2.2.6 (lmcache 0.5.6 caps numpy at <=2.2.6)
    • sentence-transformers 2.2.2 → 6.2.0 and faiss-cpu 1.10.0 → 1.15.1
    • the huggingface-hub pin is dropped and the version is left to the resolver
  • pyproject.toml: added [tool.uv] environments = ["sys_platform == 'linux' and platform_machine != 's390x'"]. uv sync resolves one lockfile for every platform at once, and two platforms we don't ship failed: 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. The router ships as a Linux image, so the image and pip installs are unaffected. The catch is that uv sync on macOS is no longer supported.
  • src/tests/perftest/fake-openai-server.py: vLLM moved vllm.entrypoints.openai.protocol to vllm.entrypoints.openai.chat_completion.protocol.

CVEs addressed (versions from OSV):

ID Package Fixed in After this PR
CVE-2026-111064 aiohttp 3.14.4 3.14.5
CVE-2026-111066 aiohttp 3.14.4 3.14.5
GHSA-2g87-pp6c-29x5 aiohttp 3.14.4 3.14.5
CVE-2026-102554 guava (in ray_dist.jar) 33.7.2 removed
CVE-2026-89407 jackson-core (in ray_dist.jar) 2.18.11 removed
CVE-2026-89425 jackson-core (in ray_dist.jar) 2.18.11 removed
CVE-2026-68497 jackson-databind (in ray_dist.jar) 2.18.10 removed
CVE-2026-91776 jackson-databind (in ray_dist.jar) 2.18.11 removed
CVE-2026-91777 jackson-databind (in ray_dist.jar) 2.18.11 removed

Known remaining (blocked upstream by lmcache 0.5.6, the latest release):

ID Package Fixed in Blocker
CVE-2026-114603 opentelemetry-api 1.40.0 1.45.1 lmcache requires opentelemetry-api<=1.40.0
PYSEC-2026-3447, GHSA-xmj3-9gf7-h52w setuptools 80.10.2 84.1.0 lmcache requires setuptools<81

Other pins checked: aiohttp 3.14.5 is the latest release. numpy stays at 2.2.6 because of the lmcache cap, and there are no known CVEs in that version. transformers in 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. ray is not installed, and the environment contains no .jar files.
  • 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)
  • The LMCache controller, semantic cache / faiss adapter and perftest fake server modules all import cleanly.
  • pre-commit passes on the changed files.
  • vllm 0.33.0: uv lock resolves, and pip-audit on a fresh image-equivalent resolution shows only the known remaining CVEs above.
  • Not done locally: building the Docker image and running the e2e/perf workflows.

Reviewer note: static-discovery-e2e-test fails because vllm serve exits with Engine core initialization failed after 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.


  • Make sure the code changes pass the pre-commit checks.
  • Sign-off your commit by using -s when doing git commit
  • Try to classify PRs for easy understanding of the type of changes, such as [Bugfix], [Feat], and [CI].

🤖 Generated with Claude Code

@shernshiou shernshiou changed the title [Router][CI/Build] Bump aiohttp and vllm to clear router image CVEs [Bugfix][Router] Upgrade aiohttp and vllm to resolve router image CVEs Oct 29, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

ruizhang0101
ruizhang0101 previously approved these changes Nov 2, 2026

@ruizhang0101 ruizhang0101 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shernshiou

shernshiou commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @ruizhang0101

Python Tests failed in uv sync. uv resolves one lockfile for every platform at once, even though CI only installs on Linux, and two platforms we don't ship can't be resolved:

macOS/Windows: vllm==0.33.0 -> nvidia-cutlass-dsl[cu13]==4.8.0   (no macOS/Windows wheels)
s390x:         vllm==0.33.0 -> protobuf==7.36.1, but lmcache==0.5.6 -> protobuf>=6.31.1,<7

On x86_64/aarch64 Linux there is no conflict (e2e installs protobuf 6.33.6). I added this to pyproject.toml:

[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 pip install isn't affected by this setting. The catch is that uv sync on macOS is no longer supported. This can be relaxed once lmcache allows protobuf 7 (s390x) and vLLM's CUDA-only dependencies become optional (macOS).

@shernshiou
shernshiou force-pushed the security/bump-aiohttp-vllm branch from 7a0b3a4 to d02599d Compare November 3, 2026 21:44
@shernshiou shernshiou changed the title [Bugfix][Router] Upgrade aiohttp and vllm to resolve router image CVEs [Bugfix][Router] Upgrade aiohttp and vllm (0.33.0) to resolve router image CVEs Nov 3, 2026
@shernshiou
shernshiou force-pushed the security/bump-aiohttp-vllm branch 2 times, most recently from ba73d18 to 0e8c4ea Compare November 3, 2026 21:54
shernshiou and others added 2 commits November 3, 2026 22:56
- 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]>
@shernshiou
shernshiou force-pushed the security/bump-aiohttp-vllm branch 2 times, most recently from 702797a to a2de4bd Compare November 4, 2026 00:13
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]>
@shernshiou
shernshiou force-pushed the security/bump-aiohttp-vllm branch from a2de4bd to 7e01f0d Compare November 4, 2026 00:15
…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]>
@shernshiou
shernshiou force-pushed the security/bump-aiohttp-vllm branch from 1313d7c to 95f4759 Compare November 4, 2026 07:07

@ruizhang0101 ruizhang0101 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ruizhang0101
ruizhang0101 merged commit 209162b into vllm-project:main Nov 7, 2026
16 checks passed
bcdonadio added a commit to powerhome/vllm-production-stack that referenced this pull request Nov 12, 2026
* [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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants