CWE-bench v2: 100 Public Security-Patch Tasks, Gemini 4 Argon Leads at 67.8% Collinear AI published CWE-bench v2 on November 3, 2026, a public benchmark of 100 security audit-and-patch tasks spanning 91 CWE types and eight programming languages, with Gemini 4 Argon leading 11 evaluated models at 67.8% pass@1 and 81.0% pass@4. Claude Opus 5.5 placed second at 67.3% pass@1 and 78.0% pass@4, while DeepSeek V4.1 Flash (1017) reached 57.0% pass@1 at $0.04 per rollout versus $3.92 for Gemini 4 Argon and $1.83 for Claude Opus 5.5. Collinear released the tasks, deterministic verifier and Harbor harness openly so results can be rerun, and keeps a private held-out set to track progress on tasks no model has seen. Collinear AI has opened a public version of CWE-bench, a test that asks coding agents to find and fix real security weaknesses. According to its Hugging Face post https://huggingface.co/blog/cwe-bench?ref=explainx dated November 3, 2026, CWE-bench v2 dataset https://huggingface.co/datasets/collinear-ai/cwe-bench?ref=explainx contains 100 public tasks across 91 different CWE types and eight programming languages. Among 11 models evaluated, Gemini 4 Argon leads with 67.8% pass@1, just ahead of Claude Opus 5.5 at 67.3%. These scores are Collinear's, from its own harness. The tasks, grader and harness are open, so anyone can rerun them, which is the main reason the release matters. A benchmark you can reproduce beats a leaderboard you must trust. TL;DR: CWE-bench v2 in a table | Question | Answer | |---|---| | What is it? | 100 defensive audit-and-patch tasks, public | | Coverage | 91 CWE types, 8 languages | | Task | Find and fix one weakness without breaking existing behavior | | Grading | Deterministic verifier; reward 1 only if all exploits closed and all legitimate cases pass | | Top score | Gemini 4 Argon, 67.8% pass@1, 81.0% pass@4 | | Second | Claude Opus 5.5, 67.3% pass@1, 78.0% pass@4 | | Cheapest strong result | DeepSeek V4.1 Flash 1017 : 57.0% pass@1 at $0.04 per rollout | | Tool | Harbor; gated dataset on Hugging Face | | Held-out set | Kept private; contact cyber@collinear.ai mailto:cyber@collinear.ai | Agents that act on your behalf need rules. See how explainx helps secure your agents → https://explainx.ai/agentbeam?src=blog note What an agent does in each task Per Collinear, the agent receives a real open-source repository and a short instruction. The goal is to find and fix a security weakness without breaking existing functionality. The dataset card says each task contains a codebase with one weakness, and a fix is accepted only when the weakness is closed and legitimate behavior is preserved. The language split on the dataset page: Go 27 tasks, Java 15, JavaScript 15, C++ 14, C 10, Python 10, Rust 5, TypeScript 4. Each task is a self-describing Harbor task with metadata, an instruction file, a Dockerfile that builds the vulnerable code with dependencies for offline use, a reference fix, and a test script that runs the deterministic verifier. Reward is binary. It is 1 only when the verifier finds every exploit input closed and every legitimate case working. If the environment fails to build, the trial is void, not scored zero. How Collinear says it kept the tasks fair The post lists six checks applied to every task: 1. Does the instruction read like a realistic instruction rather than an evaluation setting? 2. Can every graded behavior be inferred from the instruction? 3. Does the verifier check correct behavior, not the structure of one fix? 4. Does the starter code fail and the reference fix pass? 5. Does the original functionality still work with the new fix? 6. Do the verifiers fail memorized solutions such as the known upstream patch? Check six is the interesting one. A model trained on public code may have seen the real patch. Requiring that verifiers reject the memorized upstream fix pushes the test toward understanding. LLM judge panels helped curate the programmatic checks toward hardness and fairness, and every task was reviewed by hand. Collinear also keeps a held-out set so it can track progress on tasks no model has seen. The results Collinear reports two places on the Hub. The dataset page leaderboard covers open-weight models and updates when labs or the community open a PR on a model repo with a results file. A separate leaderboard Space covers all models, including API-only ones such as Gemini, Claude and GPT. | Model | pass@1 | pass@4 | Cost note | |---|---|---|---| | Gemini 4 Argon | 67.8% | 81.0% | $3.92 per rollout | | Claude Opus 5.5 | 67.3% | 78.0% | $1.83 per rollout | | DeepSeek V4.1 Flash 1017 | 57.0% | not stated | $0.04 per rollout | Open-weight scores from the dataset page, as shown when we looked: DeepSeek V4.1 Flash 1017 at 57, Tencent Hy4-preview at 52, Mistral Large 4 at 46.3 and GLM-5.3 at 44. The page marks these with an asterisk; check its notes before comparing them with the all-model table, since the setups may differ. Three takeaways from Collinear's numbers: - Solvable but not solved. 95 of 100 tasks are solved by at least one model, so the tasks are possible. Yet even the leader fails 19% of the set on every attempt. - Pass@4 matters. Gemini 4 Argon rises from 67.8% to 81.0% with four tries. If you can verify a fix, retrying is cheap insurance. - Cost frontier. Collinear says DeepSeek V4.1 Flash, Claude Opus 5.5 and Gemini 4 Argon form the Pareto frontier: DeepSeek at $0.04 per rollout, Opus adding ten points at $1.83, and Gemini edging ahead at $3.92. For background on those models, see our posts on Claude Opus 5.5 https://explainx.ai/blog/claude-opus-5-5-launch-benchmarks-pricing-2026 , DeepSeek V4.1 Flash https://explainx.ai/blog/deepseek-v4-1-flash-api-beta-native-multimodal-september-2026 and Gemini 4 Pro https://explainx.ai/blog/google-gemini-4-fast-track-koray-kavukcuoglu-post-training-2026 . How to run it yourself The tasks run through Harbor straight from the Hugging Face repo, with no manual clone. Collinear's command, in outline: harbor run --repo "https://huggingface.co/datasets/collinear-ai/cwe-bench" \ -d cwe-bench@2.0 -k 4 --agent