Open-source projects
Collinear AI Releases CWE-bench v2: 100 Real-Repo Security Fix Tasks Spanning 91 CWEs
Collinear AI's CWE-bench v2 opens 100 programmatically scored security fix tasks across 91 CWEs; Gemini 4 Argon and Claude Opus 5.5 lead 11 evaluated models, yet the best still fails about 19% of tasks on every attempt.
Collinear AI published CWE-bench v2 on November 3, releasing a public set of 100 tasks that anyone can run and use to evaluate their own models. The setup is unchanged from earlier versions: an agent receives a checkout of a real open-source repository plus a short instruction, and must find and fix a security weakness without breaking existing functionality. Scoring is fully programmatic, so results are deterministic and reproducible at no additional cost. The authors say all programmatic checks were curated with the help of LLM judge panels to push them toward difficulty and fairness. A held-out set is maintained separately so the team can track progress on tasks no model has seen.
Coverage is the stated goal. The 100 tasks span 91 different CWEs, covering a wide range of vulnerability classes. The authors argue that a defender must anticipate every way an attacker could get in and be right every time, so recognizing a familiar pattern is not enough. For each task they verified a set of conditions: the instruction should read like a realistic request rather than an evaluation setting; every graded behavior should be inferable from that instruction; the verifier should check for correct behavior rather than the specific structure of one fix; the starter code should fail while the reference fix passes; original functionality should still work after the fix; and verifiers should reject memorized solutions such as the known upstream patch. Every task was also reviewed by hand, and open-sourcing the set is presented as part of the same quality effort.
Results are tracked in two places on the Hub. A leaderboard on the dataset page covers open-weight models and updates on its own as labs and the community submit results through a pull request with a results file on the model repo. A separate leaderboard Space holds the full comparison including API-only models such as Gemini, Claude and GPT. Of the 11 models evaluated, Gemini 4 Argon leads with 67.8% pass@1 and 81.0% pass@4, just ahead of Claude Opus 5.5 at 67.3% and 78.0%. Ninety-five tasks are solved by at least one model, which suggests the tasks are solvable in principle, but even the leader fails about 19% of the set on every attempt, so the long tail remains open.
On cost, DeepSeek V4.1 Flash, Claude Opus 5.5 and Gemini 4 Argon form the Pareto frontier. DeepSeek reaches 57.0% pass@1 at roughly $0.04 per rollout, Opus adds about ten points for around $1.83, and Gemini edges ahead at around $3.92.
Operationally, each task is a self-contained Harbor task — a Dockerized environment, an instruction and a deterministic verifier — and the dataset ships a registry file, so Harbor can run the whole benchmark directly from the Hugging Face repository without manual cloning. Running with four attempts per task means the reported score is the mean reward across 400 trials. The dataset is gated, so users must accept its access conditions first and register their Hugging Face token with git's credential helper. The tasks also carry an rl-environment tag, meaning the same environments and verifiers can supply rewards for training defensive agents rather than only evaluating them. For teams tracking frontier cyber capability, that makes the benchmark reusable infrastructure for both measurement and reinforcement learning.