Skip to content

fix(security): upgrade vulnerable dependencies in eval environments - #2

Open
TechnoFinch wants to merge 5 commits into
mainfrom
fix/sec-3320-python-certifi
Open

TechnoFinch wants to merge 5 commits into
mainfrom
fix/sec-3320-python-certifi

Conversation

@TechnoFinch

@TechnoFinch TechnoFinch commented Oct 21, 2026 •

Copy link
Copy Markdown

Summary

Upgrades vulnerable dependencies in the eval environments, including:

  • certifi 2024.x -> 2026.10.19 (CVE-2026-111943: the emSign root is removed from the CA bundle)
  • pillow 10.4.0 -> 13.0.0 in 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.toml now requires python >=3.11, and the lock was re-locked with poetry 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 on vllm==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 for fschat, outlines, xformers and vllm-flash-attn are 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 example blake3) require. requirements_lcb.txt drops async-timeout, exceptiongroup, tomli and backports-strenum, which are only needed on Python < 3.11.
  • lcb_runner/evaluation/testing_util.py: replaces pyext.RuntimeModule.from_string with an equivalent ModuleType + exec helper, and drops pyext from requirements_lcb.txt and the LiveCodeBench pyproject.toml/poetry.lock. pyext 0.7 is sdist-only and its setup.py calls inspect.getargspec, which Python 3.11 removed, so it can't be installed in the 3.11 lcb environment.
  • eval/Math/amc/evaluate_amc.py: removes best_of=1 from SamplingParams. vllm removed that parameter, and 1 was already the default.

All three requirements files resolve cleanly with uv pip compile for linux x86_64 (all on Python 3.11). The resolved set matches the pins exactly.

Notes

  • This is a large jump (vllm 0.6.3 -> 0.30.0, torch 2.4 -> 2.13 / CUDA 13, transformers 4.46 -> 5.10). Re-run the evals before relying on numbers comparable with earlier results.
  • Recreate any environments that were installed from these files.

@broly-code-security-scanner

broly-code-security-scanner Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Broly Security Scan

Warning

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

⚠️ SCA scan failed: scan errors: scanner sca: SCA scan /tmp/broly-changed-sca-429089407: context deadline exceeded

Warning

Summary

22 actionable finding(s) in this PR

  • 🔴 5 critical
  • 🟠 11 high
  • 🟡 6 medium

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 medium reporting threshold are not listed above — see the repository Security tab for the full set.

Severity Scanner Issue Location Dismiss Verdict
🔴 CRITICAL SCA ray@2.10.0 — 13 vulnerabilities (worst:
GHSA-6wgj-66m2-xxp2)
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d1 🔺 TRUE_POSITIVE · Confidence: HIGH
🔴 CRITICAL SCA pyarrow@15.0.2 — 3 vulnerabilities (worst:
PYSEC-2024-161)
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d65 🔺 TRUE_POSITIVE · Confidence: HIGH
🔴 CRITICAL SCA torch@2.1.2 — 28 vulnerabilities (worst:
PYSEC-2024-259)
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d2 🔺 TRUE_POSITIVE · Confidence: HIGH
🔴 CRITICAL SCA anyio@4.3.0 — 4 vulnerabilities (worst:
GHSA-82r6-8w77-94w6)
→ fixed in 4.14.2
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d63 🔺 TRUE_POSITIVE · Confidence: HIGH
🔴 CRITICAL SCA h11@0.14.0 — 2 vulnerabilities (worst:
GHSA-vqfr-h8mv-ghfj)
→ fixed in 0.16.0
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d64 🔺 TRUE_POSITIVE · Confidence: HIGH
🟠 HIGH SCA fsspec@2024.2.0 — 2 vulnerabilities (worst:
GHSA-27vj-qcqg-25rc)
→ fixed in 2026.6.0
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d69 🔺 TRUE_POSITIVE · Confidence: HIGH
🟠 HIGH SCA transformers@4.39.3 — 29 vulnerabilities (worst:
GHSA-hxxf-235m-72v3)
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d85 🔺 TRUE_POSITIVE · Confidence: HIGH
🟠 HIGH SCA aiohttp@3.9.4 — 76 vulnerabilities (worst:
GHSA-2g87-pp6c-29x5)
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d67 🔺 TRUE_POSITIVE · Confidence: HIGH
🟠 HIGH SCA starlette@0.37.2 — 14 vulnerabilities (worst:
GHSA-f96h-pmfr-66vw)
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d20 🔺 TRUE_POSITIVE · Confidence: HIGH
🟠 HIGH SCA orjson@3.10.0 — 2 vulnerabilities (worst:
GHSA-hx9q-6w63-j58v)
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d72 🔺 TRUE_POSITIVE · Confidence: HIGH
🟡 MEDIUM SCA datasets@2.18.0 — 2 vulnerabilities (worst:
GHSA-379c-qx7v-6h59)
→ fixed in 5.0.1
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d47 🔺 TRUE_POSITIVE · Confidence: HIGH
🟡 MEDIUM SCA idna@3.7 — 2 vulnerabilities (worst:
GHSA-65pc-fj4g-8rjx)
→ fixed in 3.15
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d79 🔺 TRUE_POSITIVE · Confidence: HIGH
🟡 MEDIUM SCA python-dotenv@1.0.1 — 2 vulnerabilities (worst:
GHSA-mf9w-mj56-hr94)
→ fixed in 1.2.2
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 — 🔺 TRUE_POSITIVE · Confidence: HIGH
🟡 MEDIUM SCA filelock@3.13.4 — 4 vulnerabilities (worst:
GHSA-w853-jp5j-5j7f)
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 d78 🔺 TRUE_POSITIVE · Confidence: HIGH
🟡 MEDIUM SCA requests@2.31.0 — 6 vulnerabilities (worst:
GHSA-9wx4-h78v-vm56)
eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 — 🔺 TRUE_POSITIVE · Confidence: HIGH

Fix Suggestions

ray@2.10.0 — 13 vulnerabilities (worst: GHSA-6wgj-66m2-xxp2) — eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1

Upgrade to the latest ray release (e.g., poetry add ray@latest) and verify each of the 13 advisories is resolved; if ray is not required at runtime, remove it from the project.

pyarrow@15.0.2 — 3 vulnerabilities (worst: PYSEC-2024-161) — eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1

Upgrade pyarrow to a patched release (e.g., 'poetry add pyarrow@latest' or 'poetry update pyarrow' to >=16.1.0, which fixes GHSA-rgxp-2hwp-jwgg), and if no single version covers all advisories, apply workarounds such as disabling/restricting Arrow Flight RPC endpoints and validating untrusted Parquet/IPC inputs.

torch@2.1.2 — 28 vulnerabilities (worst: PYSEC-2024-259) — eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1

Upgrade torch to the latest patched release, e.g. poetry update torch or poetry add torch@latest (>= 2.6.0 addresses most of these advisories), and verify each remaining advisory individually since no single version fixes all 28.


Dismiss false positives

Tick a box to dismiss the finding; untick it to bring the finding back. That is the same as replying /broly dismiss d1 and /broly undismiss d1. To record why it is a false positive, reply with /broly dismiss d1: your reason instead — Broly reuses those reasons to triage similar findings across the org.

  • d63 · 🔴 CRITICAL · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · anyio@4.3.0 — 4 vulnerabilities (worst: GHSA-82r6-8w77-94w6)
  • d64 · 🔴 CRITICAL · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · h11@0.14.0 — 2 vulnerabilities (worst: GHSA-vqfr-h8mv-ghfj)
  • d65 · 🔴 CRITICAL · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · pyarrow@15.0.2 — 3 vulnerabilities (worst: PYSEC-2024-161)
  • d1 · 🔴 CRITICAL · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · ray@2.10.0 — 13 vulnerabilities (worst: GHSA-6wgj-66m2-xxp2)
  • d2 · 🔴 CRITICAL · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · torch@2.1.2 — 28 vulnerabilities (worst: PYSEC-2024-259)
  • d67 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · aiohttp@3.9.4 — 76 vulnerabilities (worst: GHSA-2g87-pp6c-29x5)
  • d68 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · diskcache@5.6.3 — 2 vulnerabilities (worst: PYSEC-2026-2447)
  • d69 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · fsspec@2024.2.0 — 2 vulnerabilities (worst: GHSA-27vj-qcqg-25rc)
  • d70 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · httplib2@0.22.0 — 2 vulnerabilities (worst: GHSA-j5g9-f88f-gfj3)
  • d71 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · msgpack@1.0.8 — 2 vulnerabilities (worst: GHSA-6v7p-g79w-8964)
  • d72 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · orjson@3.10.0 — 2 vulnerabilities (worst: GHSA-hx9q-6w63-j58v)
  • d73 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · protobuf@4.25.3 — 4 vulnerabilities (worst: GHSA-7gcm-g887-7qv7)
  • d74 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · pyasn1@0.6.0 — 8 vulnerabilities (worst: GHSA-8ppf-4f7h-5ppj)
  • d75 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · sentencepiece@0.2.0 — 2 vulnerabilities (worst: GHSA-38vq-g6vr-w8wf)
  • d20 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · starlette@0.37.2 — 14 vulnerabilities (worst: GHSA-f96h-pmfr-66vw)
  • d85 · 🟠 HIGH     · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · transformers@4.39.3 — 29 vulnerabilities (worst: GHSA-hxxf-235m-72v3)
  • d47 · 🟡 MEDIUM   · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · datasets@2.18.0 — 2 vulnerabilities (worst: GHSA-379c-qx7v-6h59)
  • d78 · 🟡 MEDIUM   · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · filelock@3.13.4 — 4 vulnerabilities (worst: GHSA-w853-jp5j-5j7f)
  • d79 · 🟡 MEDIUM   · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · idna@3.7 — 2 vulnerabilities (worst: GHSA-65pc-fj4g-8rjx)
  • d48 · 🟡 MEDIUM   · eval/Coding/livecodebench/LiveCodeBench-main/poetry.lock:1 · jinja2@3.1.3 — 8 vulnerabilities (worst: GHSA-cpwx-vrp4-4pq7)

2 more dismissable finding(s) omitted from this comment (max 20 shown). Use the repository Security tab to review the full set.

Note

Re-scan this PR anytime with /broly scan — useful after /broly undismiss, or to refresh findings without a new push.

Broly — SAST (GLM-5.3-Flash) · Secrets · SCA · IaC · GH Actions · Base Images · Supply Chain Threats · Attack Hypotheses · Adversarial Verification

We're continuously improving Broly's accuracy and finding quality — your feedback is valuable. False positives, missed findings, bugs, and feature requests all welcome.

Ask in #security-engineering   Powered by Together AI

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).
Comment thread eval/requirements_lcb.txt Fixed
Comment thread eval/requirements_lcb.txt Fixed
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.
@TechnoFinch TechnoFinch changed the title fix(security): bump certifi to 2026.10.19 (CVE-2026-111943) fix(security): upgrade vulnerable dependencies in eval environments Oct 22, 2026
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)
Comment thread eval/requirements_lcb.txt Fixed
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).
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.

3 participants