You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SECURITY] Supply chain: build images from a hashed lock file instead of open >= ranges #121
Every runtime dependency uses an open >= range (requirements.txt), and the Docker images install them at build time. Each image build therefore pulls whatever was newest on PyPI that day, unpinned and unhashed.
That's how the October 21 LiteLLM 1.107.0 compromise reached people: a malicious release was live on PyPI for about 2 hours, and any unpinned build in that window installed it. We don't depend on LiteLLM, but the same could happen with anthropic, fastapi, httpx, mcp or any of the ~80 transitive packages. Builds also aren't reproducible: two images from the same commit can differ.
Separately, CI's dependency check is safety check || true (ci.yml), so a known-vulnerable dependency never fails the build. #18 tracks making scans blocking and asks Safety vs pip-audit.
Suggested fix
Keep requirements.txt as the human-edited ranges, and generate requirements.lock with uv pip compile --generate-hashes (and one for middleware/).
Docker builds install with pip install --require-hashes -r requirements.lock.
Activity