---
title: "CWE-bench v2: More coverage, quality, and transparency"
description: "CWE-bench v2 releases a public set of 100 agentic security tasks covering 91 CWEs, where an agent must find and fix a vulnerability in a real open-source repository without breaking existing functionality, scored by deterministic programmatic verifiers that reject memorized upstream patches."
url: "https://swe.quest/articles/cwe-bench-v2-more-coverage-quality-and-transparency-a9d3d012216634c0"
canonical: "https://huggingface.co/blog/cwe-bench"
source: "Hugging Face"
published: "2026-11-03"
difficulty: "medium"
kind: "Research"
reading_minutes: 4
tags: ["evals","appsec","ai-agents","llms"]
---

# CWE-bench v2: More coverage, quality, and transparency

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-11-03, 4 min read, Research. Original: [https://huggingface.co/blog/cwe-bench](https://huggingface.co/blog/cwe-bench)

## Summary

CWE-bench v2 releases a public set of 100 agentic security tasks covering 91 CWEs, where an agent must find and fix a vulnerability in a real open-source repository without breaking existing functionality, scored by deterministic programmatic verifiers that reject memorized upstream patches. Of 11 models, Gemini 4 Argon leads at 67.8% pass@1 and 81.0% pass@4, narrowly ahead of Claude Opus 5.5, while DeepSeek V4.1 Flash reaches 57.0% at $0.04 per rollout on the cost Pareto frontier. 95 tasks are solved by at least one model, but the leader still fails 19% on every attempt. Tasks are packaged as Dockerized Harbor environments runnable directly from the Hugging Face Hub and usable as RL rewards for training defensive agents.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Application security](https://swe.quest/tags/appsec.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- CWE vulnerability classes
- LLM coding agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- pass@k metrics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

CWE-bench, Harbor, Collinear AI, Hugging Face, Gemini 4 Argon, Claude Opus 5.5, DeepSeek V4.1 Flash

## Related posts

- [CyberSecEval 2 - A Comprehensive Evaluation Framework for Cybersecurity Risks and Capabilities of Large Language Models](https://swe.quest/articles/cyberseceval-2-a-comprehensive-evaluation-framework-for-cybersecurity-risks-and-b77206af9c9d754e.md): Hugging Face · 2024-05-24 · Easy · 5 min read · Evaluation, AI safety, LLMs, Application security
  CyberSecEval 2 is Meta's open-source benchmark suite measuring LLM cybersecurity risks across five areas: insecure code generation (mapped to CWE), prompt injection susceptibility, compliance with cyber-attack requests versus false refusals of benign prompts, code interpreter abuse, and automated CTF-style exploitation.
- [Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes](https://swe.quest/articles/introducing-autopatchbench-a-benchmark-for-ai-powered-security-fixes-f107d000a04ddc7d.md): Meta Engineering · 2025-04-29 · Hard · 17 min read · Evaluation, Vulnerability research, AI for coding, C & C++, Testing
  AutoPatchBench is a benchmark of 136 fuzzing-found C/C++ vulnerabilities from real projects, curated from the ARVO/OSS-Fuzz dataset, for evaluating AI program repair agents.
- [Building an agentic harness that outlasts the model](https://swe.quest/articles/building-an-agentic-harness-that-outlasts-the-model-75504578038e6cc5.md): Shopify Engineering · 2026-07-29 · Medium · 8 min read · AI agents, Application security, Vulnerability research, LLMs, Ruby
  Shopify's AppSec team built Dispatch, a Ruby-orchestrated multi-agent harness that partitions codebases, runs parallel category-specific Hunter agents, verifies candidates with tests written by a different model inside each app's existing test suite, and opens draft fix PRs.
- [How I hunt for vulnerabilities with AI](https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da.md): ClickHouse · 2026-06-26 · Medium · 23 min read · Vulnerability research, AI agents, AI for coding, C & C++
  AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse.
- [Detecting malicious pull requests at scale with LLMs](https://swe.quest/articles/detecting-malicious-pull-requests-at-scale-with-llms-18b7d45442154d44.md): Datadog Engineering · 2025-10-21 · Medium · 12 min read · Supply chain security, Threat detection, LLMs, Code review, Evaluation
  Datadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
