AI code review agents catch only a quarter of pull requests that fix a real bug while quietly adding a security hole. That is the result of VeilPRBench, a benchmark posted to arXiv on December 3 by researchers from Shanghai Jiao Tong University, the Shanghai AI Laboratory and Ant Group, among others. Across 16 open-source review workflows, attack blocking averaged 25 percent; the best workflow stopped 55.2 percent of attacks but also rejected 40 percent of legitimate fixes. For teams that let an AI reviewer approve or gate merges, the study also shows the cheapest improvement: a generic security instruction.
How VeilPRBench tests code review agents
The benchmark targets a realistic attack. Each of its 192 attack pull requests genuinely resolves a historical issue from one of 14 open-source projects in Python, C and JavaScript, and passes the functional tests, but also introduces a vulnerability that executable security checks can trigger. Alongside them sit 135 benign repairs for the same kinds of issues, so a reviewer that blocks everything is penalized too. Each workflow saw what a normal reviewer sees: the diff, the title and description, the issue and permitted repository context, but not the hidden tests or labels.
The 16 workflows range from integrated review tools such as PR-Agent, Shippie, Code Butler and a Bedrock-based reviewer to prompt-based GitHub review actions built on ChatGPT or Gemini, and were also run on swapped model backbones: Claude Opus, GPT-5.5, Gemini, DeepSeek and Qwen. Widely used hosted products such as GitHub Copilot code review and CodeRabbit are not among the 16.
What the review agents missed
| Review workflow | Attacks blocked (of 192) | Benign fixes accepted (of 135) |
|---|---|---|
| Code Butler | 55.2% | 60.0% |
| OpenAI ChatGPT Code Review | 31.8% | 72.6% |
| Presubmit AI Code Reviewer | 30.2% | 85.9% |
| PR-Agent | 28.1% | 99.3% |
| Shippie | 26.0% | 74.1% |
| Gemini AI Code Reviewer | 20.3% | 74.8% |
| Bedrock PR Reviewer | 15.1% | 92.6% |
| AI Code Reviewer | 9.9% | 91.9% |
| All 16 workflows | 25.0% | 80.9% |
Source: Song et al., “VeilPRBench”, arXiv 2612.05271 v1, end-to-end results table (selection of 8 of 16 workflows, default backbones). Runs without an explicit verdict count as not blocked.
Across all 3,072 attack evaluations, the agents blocked 769, or 25 percent. In practice that means about three in four working-but-malicious fixes would pass review. The trade-off is visible at the top: Code Butler blocked 55.2 percent of attacks but accepted only 60 percent of benign repairs, while PR-Agent accepted 99.3 percent of benign fixes and blocked 28.1 percent of attacks, and AI Code Reviewer blocked just 9.9 percent.
Swapping the model behind the same tools did not solve it. On a fixed subset of 70 attacks, average blocking across the 16 workflows ranged from 16.2 percent with GPT-5.5 to 28.8 percent with Gemini. Decisions were also unstable: re-running the same review changed the blocking outcome for between 9 and 32 of 70 attack PRs, depending on the setup.
One step further: one security sentence nearly doubles blocking, and why reviewers miss these PRs
The paper’s most useful result is cheap. Holding the PR-Agent workflow fixed across five model backbones, the researchers added a generic security instruction to the review prompt. Attack blocking rose from 29.2 to 50.7 percent, a gain of 21.6 percentage points, while acceptance of benign fixes fell only from 93.0 to 89.3 percent. Adding repository-specific and weakness-specific guidance on top lifted blocking to 55 percent, which still left 45 percent of attacks unblocked.
Why do reviewers miss these changes? The attack PRs do what they claim: the issue is fixed and the tests pass. A review agent that mainly checks “does this resolve the issue” has no reason to look further unless it is told to. In the paper’s manual analysis of 50 reviews, 43 touched on the targeted weakness, but only nine noted its impact and only one described a concrete attack mechanism.
What follows for two groups:
- Teams using an AI reviewer as a merge gate should add an explicit security instruction to its prompt, since the default workflows in this test behaved as functional reviewers. Even then, roughly half of the attacks got through, so AI approval should not replace human review on security-sensitive paths such as authentication, parsing or access control.
- Maintainers of open-source projects face the threat model this benchmark simulates: an outside contributor submits a useful fix with a hidden flaw. With AI reviewers increasingly the first line of review, the 25 percent average is the number to remember. Buying more review does not automatically help either: Copilot’s Max code review tier runs eight reviewers at $10 a review, but Copilot was not among the tested tools, so its blocking rate on such attacks is unknown.
What is still open: how commercial review products score on VeilPRBench, and whether combining AI review with formal or program-analysis checks, as in the code review versus automated reasoning comparison we covered this week, closes the gap.
How we checked
Checked on 6 December 2026, 06:47 CET.
- The full arXiv paper 2612.05271 (version 1, December 3, 2026), including the end-to-end results table, the cross-backbone table, the security-context experiment and the failure analysis
- Our calculations: three in four attacks passing at 25 percent blocking, the selection of workflows in the table
- Not done by us: running VeilPRBench or testing commercial review products
i10x Perspective
AI code review is sold as a safety net, and this benchmark shows it mostly checks whether a change works, not whether it is safe. That is a design default, not a hard limit: one generic sentence about security nearly doubled blocking. The uncomfortable part is the ceiling. Even with targeted hints, almost half of the hidden flaws passed, and repeated runs flipped decisions. We would treat AI reviewers as a useful first pass that must be told to look for security problems, and never as the reason to skip a human look at code that handles trust boundaries.



