Collinear AI has released CWE-bench v2, a public benchmark designed to evaluate the cybersecurity capabilities of large language models and agents. The update introduces a set of 100 tasks that allow developers to test how well models identify and fix security weaknesses in real open-source repositories without breaking existing functionality.

What Happened

The new version of the benchmark expands its scope to cover 91 different Common Weakness Enumerations (CWEs), aiming to test a model's ability to anticipate various attack vectors rather than just recognizing familiar patterns. Each task provides an agent with a checkout of a real repository and a short instruction, requiring it to locate and patch a vulnerability. The scoring is fully programmatic and deterministic, meaning results can be reproduced by anyone without additional cost. To ensure quality, Collinear AI curated the programmatic checks with the help of LLM judge panels to shape them towards hardness and fairness. Separately, every task underwent manual human review to verify that instructions read realistically, that graded behaviors could be inferred from the instruction, and that verifiers did not penalize valid alternative fixes.

Initial results from the 11 evaluated models show Gemini 4 Argon leading the leaderboard with a 67.8% pass@1 rate and 81.0% pass@4, slightly ahead of Claude Opus 5.5, which reported 67.3% pass@1 and 78.0% pass@4. While 95 of the 100 tasks were solved by at least one model, indicating solvability, the top performers still fail approximately 19% of the set on every attempt. In terms of cost efficiency, DeepSeek V4.1 Flash reached a 57.0% pass@1 rate at $0.04 per rollout, forming a Pareto frontier with Claude Opus 5.5 ($1.83 per rollout) and Gemini 4 Argon ($3.92 per rollout).

Why It Matters

The release of CWE-bench v2 provides the AI industry with a standardized, transparent metric for assessing defensive coding capabilities. By making the public set, grader, and harness open-source, Collinear AI enables broader community participation and reproducibility, addressing previous gaps in evaluating AI security performance. The benchmark also highlights the current limitations of frontier models, showing that while high performance is achievable, the long tail of complex, multi-surface vulnerabilities remains difficult to solve consistently. For developers and enterprises, the data offers insights into the trade-offs between model accuracy and inference cost, with DeepSeek V4.1 Flash emerging as a cost-effective option for high-volume automated security checks.

Additionally, the tasks are tagged as reinforcement learning environments, allowing the same verifiers to provide rewards for training defensive agents. This dual utility supports both evaluation and the development of more robust AI systems capable of proactive security maintenance.

The Bottom Line

CWE-bench v2 offers a rigorous, open platform for testing AI security capabilities across 91 vulnerability classes. While Gemini 4 Argon currently leads in accuracy, the benchmark reveals that no model has yet solved the entire set, underscoring the ongoing challenge of automated code security. Developers can access the public tasks via Hugging Face and Harbor to evaluate their own models.