Evaluating AI Security Agents with CWE-bench v2
An overview of CWE-bench v2, a public benchmark released on November 3, 2026, designed to test how well AI models find and fix security vulnerabilities.
According to the Hugging Face blog, Collinear AI released CWE-bench v2 to test the limits of cyber capabilities in AI models. The update provides a public set of 100 tasks covering 91 different Common Weakness Enumerations (CWEs) across various vulnerability classes.
What Changed
CWE-bench v2 updates the public task pool to 100 scenarios where an agent receives a checkout of a real open-source repository and an instruction. The goal is to find and fix a security weakness without breaking existing functionality. Scoring is programmatic and deterministic, and tasks are curated using LLM judge panels to prioritize hardness and fairness.
How It Works
Every task is a self-contained Harbor task featuring a Dockerized environment, an instruction, and a deterministic verifier. The verifiers are designed to check for correct behavior rather than enforcing a specific fix structure, and they fail memorized solutions like known upstream patches.
The benchmark ships with a registry.json and integrates directly with Hugging Face repositories, allowing developers to run evaluations using Harbor without manually cloning repositories. Additionally, tasks are tagged as rl-environment, meaning the same environments and verifiers can provide rewards for training defensive agents.
Why a Developer Might Care
According to results published on the Hugging Face blog, 11 models were evaluated on the public set. Gemini 4 Argon leads with a 67.8% pass@1 and 81.0% pass@4, just ahead of Claude Opus 5.5 at 67.3% pass@1 and 78.0% pass@4. A total of 95 tasks were solved by at least one model.
For cost-conscious engineering, the source highlights a Pareto frontier among evaluated models:
- DeepSeek V4.1 Flash: Reaches 57.0% pass@1 at $0.04 per rollout.
- Claude Opus 5.5: Reaches higher performance at $1.83 per rollout.
- Gemini 4 Argon: Reaches top performance at $3.92 per rollout.
Limitations
- Gated Access: The dataset requires developers to accept access conditions on the Hugging Face dataset page and configure git credentials.
- Held-Out Tasks: Collinear AI maintains a separate held-out set for tracking progress on unseen tasks. Evaluating against this set requires contacting
cyber@collinear.ai. - Unsolved Vulnerabilities: Even the highest-scoring model fails 19% of the public set on every attempt, showing that the long tail of security weaknesses is still difficult for current models.
Source: Hugging Face