Repository navigation
fix(security): upgrade vulnerable dependencies in eval environments - #2
TechnoFinch wants to merge 5 commits into
Conversation
Broly Security ScanWarning Latest baseline snapshot is stale. Broly is running in PR-only fallback mode until the next scheduled baseline refreshes. This does not block the PR. Caution Warning Summary 22 actionable finding(s) in this PR
Main table: 15 shown, 7 omitted of 22 actionable finding(s) above the reporting threshold. See the repository Security tab for the full set. 1 finding(s) below the
Fix Suggestionsray@2.10.0 — 13 vulnerabilities (worst: GHSA-6wgj-66m2-xxp2) —
|
Bump vllm to 0.30.0 (torch 2.13.0, transformers 5.10.4) and patch aiohttp, anyio, h11, urllib3, starlette, pillow, pyarrow, protobuf, ray, msgpack, fsspec, sentencepiece, nltk, cryptography, dulwich, poetry, virtualenv, orjson, httplib2, pyasn1, jinja2, requests, filelock and python-dotenv to fixed releases. Drop unused fschat, outlines, xformers and vllm-flash-attn pins. The prime and qwen_math environments now use Python 3.11 (required by pillow 13).
vllm removed the best_of sampling parameter, so SamplingParams(best_of=1) raises TypeError on the upgraded pin. best_of=1 was the default, so removing it does not change behavior.
Pillow 12.x still carries open advisories; 13.0.0 is the first clean release and requires Python >= 3.11. - requirements_lcb.txt: pillow 12.3.0 -> 13.0.0; drop async-timeout, exceptiongroup, tomli and backports-strenum, which are only needed on Python < 3.11 - README: create the lcb conda env with Python 3.11 - LiveCodeBench pyproject: python >=3.11; poetry.lock re-locked with poetry 1.8.3 --no-update (only drops <3.11 markers/packages)
pyext 0.7 is sdist-only and its setup.py calls inspect.getargspec, which was removed in Python 3.11, so `pip install -r requirements_lcb.txt` fails in the Python 3.11 lcb environment. testing_util only used RuntimeModule.from_string, so replace it with an equivalent ModuleType + exec helper and drop pyext from requirements_lcb.txt and the LiveCodeBench pyproject (poetry.lock re-locked with --no-update; only the pyext entry and content-hash change).
Summary
Upgrades vulnerable dependencies in the eval environments, including:
certifi2024.x ->2026.10.19(CVE-2026-111943: the emSign root is removed from the CA bundle)pillow10.4.0 ->13.0.0in all three requirements files (CVE-2026-96639, CVE-2026-42311, CVE-2026-25990 and others). 13.0.0 is the first release with no open advisories, and it requires Python >= 3.11.Changes
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock: certifi 2024.2.2 -> 2026.10.19.pyproject.tomlnow requirespython >=3.11, and the lock was re-locked withpoetry lock --no-update(Poetry 1.8.3). That only drops the Python < 3.11 markers and packages (async-timeout, exceptiongroup) and updates the content-hash. No other locked versions change.eval/requirements_lcb.txt,eval/requirements_prime.txt,eval/requirements_qwen_math.txt: re-pinned to a fully resolved set built onvllm==0.30.0(torch 2.13.0, torchvision 0.28.0, transformers 5.10.4), with fixed releases of aiohttp, anyio, h11, urllib3, starlette, pillow, pyarrow, protobuf, ray, msgpack, fsspec, sentencepiece, nltk, cryptography, dulwich, poetry, virtualenv, orjson, httplib2, pyasn1, jinja2, requests, filelock, python-dotenv and certifi. The unused pins forfschat,outlines,xformersandvllm-flash-attnare removed.eval/README.md: all three conda environments (prime,qwen_math,lcb) now use Python 3.11, which pillow 13 and the upgraded dependency set (for exampleblake3) require.requirements_lcb.txtdropsasync-timeout,exceptiongroup,tomliandbackports-strenum, which are only needed on Python < 3.11.lcb_runner/evaluation/testing_util.py: replacespyext.RuntimeModule.from_stringwith an equivalentModuleType+exechelper, and dropspyextfromrequirements_lcb.txtand the LiveCodeBenchpyproject.toml/poetry.lock. pyext 0.7 is sdist-only and itssetup.pycallsinspect.getargspec, which Python 3.11 removed, so it can't be installed in the 3.11 lcb environment.eval/Math/amc/evaluate_amc.py: removesbest_of=1fromSamplingParams. vllm removed that parameter, and 1 was already the default.All three requirements files resolve cleanly with
uv pip compilefor linux x86_64 (all on Python 3.11). The resolved set matches the pins exactly.Notes