Skip to content

chore(deps): bump dependencies to latest versions - #24

Merged
antas-marcin merged 1 commit into
mainfrom
update-dependencies
Dec 4, 2026
Merged

antas-marcin merged 1 commit into
mainfrom
update-dependencies

Conversation

@antas-marcin

@antas-marcin antas-marcin commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Bumps all Python dependencies to their latest versions. The old pins were from August 2024 and carried known advisories:

Package Before After Advisories at old version (OSV)
torch 2.4.0 2.15.0 24, incl. critical: RCE via torch.load with weights_only=True (CVE-2025-32434), untrusted checkpoints (CVE-2026-24747)
transformers 4.44.0 5.26.0 44, incl. deserialization of untrusted data (CVE-2024-11392/3/4), RCE (CVE-2026-4372, CVE-2026-5241), many ReDoS
sentence-transformers 3.0.1 6.3.0 1 critical: local model loading bypasses trust_remote_code (CVE-2026-68770)
pydantic 2.8.2 2.14.4 –
fastapi 0.112.0 0.165.1 –
uvicorn 0.30.5 0.55.0 –
requests (test) 2.28.1 2.34.2 4 moderate

All new versions support Python 3.11, which the images use.

FastAPI Content-Type fix

FastAPI 0.132 started rejecting request bodies that don't come with Content-Type: application/json (422). Weaviate's reranker client (modules/reranker-transformers/clients/ranker.go) doesn't set that header, so every rerank call from Weaviate would fail after the bump. The app now sets strict_content_type=False, the same fix as in t2v-model2vec. The new testRerankWithoutContentType smoke test sends Weaviate's exact request shape without the header: it fails with 422 without the flag and passes with it.

Testing

Built the image locally (arm64) with cross-encoder/ms-marco-TinyBERT-L-2-v2 and ran smoke_tests.py: all 6 tests pass, with no warnings or errors in the container logs. CI covers the other model images.

Note: arm64 image size

PyTorch now ships CUDA builds for arm64 Linux on PyPI, so the arm64 image pulls nvidia-* (~3.3 GB) and triton (~0.9 GB) and grows to ~9.7 GB locally. torch 2.4.0 on arm64 had no CUDA deps. amd64 already shipped CUDA, so it's barely affected (~3.0 GB of compressed wheels, up from 2.84 GB). If we want to keep arm64 small and CPU-only, a follow-up can install torch from PyTorch's CPU index for arm64.

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 1   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca
🛡️ The following SAST misconfigurations have been detected
NAME FILE
medium Missing Timeout in Requests Module Can Cause DoS smoke_tests.py View in code

@antas-marcin
antas-marcin merged commit d6d3e07 into main Dec 4, 2026
9 checks passed
@antas-marcin
antas-marcin deleted the update-dependencies branch December 4, 2026 11:06
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.

1 participant