arXiv(opens in a new tab)cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.13491

EviRepair: Evidence-Driven Agents for Reliable Vulnerability Repair

Yilian Shi, Qingyu Liu, Tianyi Zhou, Wende Tan, Chenyang Si, Yueming Lyu, Xia Hu, Dongrui Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recent advances in large language models (LLMs) have enabled agent-based approaches for repository-level automated vulnerability repair (AVR), showing promising repair capabilities. However, an important issue has received limited attention: how can we ensure that the evidence generated during the repair process is reliable enough to support accurate vulnerability understanding and patch generation? In this paper, we propose EVIREPAIR, an evidence-driven multi-agent framework for repository-level AVR. EVIREPAIR introduces evidence review into the repair process by enabling agents to collaboratively collect vulnerability evidence, verify evidence consistency, and construct a reviewed vulnerability model for patch synthesis and validation. Extensive experiments on PatchEval and SecBench benchmarks with multiple agent frameworks and LLMs demonstrate that EVIREPAIR consistently outperforms existing agent-based baselines, achieving average improvements of 16.37% and 40.33% in resolved rates on PatchEval and SecBench, respectively. Codes are available at https://github.com/lly-s/EviRepair.

1 Introduction

Automated vulnerability repair (AVR) (Li et al., 2025) aims to automatically generate patches for software vulnerabilities and has become an important research problem in software security and automated program repair. Early AVR approaches mainly rely on predefined repair templates (Huang et al., 2019; Li et al., 2025), program analysis techniques (Gao et al., 2021; Zhang et al., 2022), or search-based strategies (Le Goues et al., 2012; Li et al., 2025), which often struggle with real-world vulnerabilities requiring deep understanding of program semantics and repository-level context. As a result, practical vulnerability repair still heavily relies on human expertise, leading to substantial manual effort and limited scalability. Recent advances in large language models (LLMs) (Pearce et al., 2023; Fu et al., 2022) have opened new possibilities for AVR. By leveraging their code understanding and generation capabilities, LLM-based agents have demonstrated the potential to perform repository-level vulnerability repair with reduced human intervention.

Despite recent advances in LLM-based AVR systems, generating reliable patches remains challenging. A successful repair requires not only code changes but also evidence that the changes address the underlying vulnerability. However, existing single-agent approaches (Yu et al., 2025; Liu et al., 2025; Kulsum et al., 2024) perform vulnerability analysis, patch generation, and validation within the same workflow. Consequently, diagnostic evidence is directly reused for repair decisions without a dedicated review stage, allowing incorrect or incomplete vulnerability understanding to propagate through the repair process. Recent multi-agent approaches (Zhang et al., 2026b;a; Liu et al., 2026b; Fu et al., 2026) introduce specialized roles to improve repair reliability. However, these frameworks directly aggregate intermediate outputs from different agents. They do not verify evidence consistency before patch generation or use verified evidence for patch validation. As a result, inconsistent or incomplete findings from different agents may be propagated into patch generation. Therefore, existing agent-based AVR frameworks generally do not explicitly validate evidence consistency throughout the repair process.

In this paper, we propose EVIREPAIR, an evidence-driven multi-agent framework for repository-level AVR. EVIREPAIR addresses the lack of evidence validation by introducing evidence review into both vulnerability diagnosis and patch synthesis. It decomposes the repair process into two stages: Vulnerability Diagnosis

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Figure

Figure 1: Comparison of single-agent, conventional multi-agent, and EviRepair for automated vulnerability repair. Single-agent methods face context overload by centralizing all tasks, while conventional multi-agent methods omit explicit evidence consistency checks. EviRepair employs multiple agents to alleviate the context burden on individual agents and introduces review agents to ensure consistency.

and Patch Synthesis, connected through a reviewed Vulnerability Model. Given a vulnerability report, the Analysis Coordinator in Vulnerability Diagnosis assigns complementary analysis tasks to specialized agents to collect vulnerability evidence, including code reachability, reproducibility, security boundaries, and affected behaviors. An Evidence Consistency Review Agent then verifies whether the collected evidence consistently explains the reported vulnerability and determines whether additional analysis is required before constructing the final Vulnerability Model. Based on this reviewed model, Patch Synthesis plans and generates patches, followed by a patch review against the established security and compatibility criteria.

We conduct extensive experiments on PatchEval (Wei et al., 2025) and SecBench (Lee et al., 2025) to evaluate the effectiveness of EVIREPAIR. We compare EVIREPAIR with two mainstream agent frameworks, OpenCode (Anomaly, 2026) and Codex (OpenAI, 2026), using two representative LLMs, GLM-5.2 (Z.AI, 2026) and DeepSeek-4.1-Flash (DeepSeek, 2026). Across different agent frameworks and underlying models, EVIREPAIR consistently achieves higher resolved rates than the evaluated baselines, with average improvements of 16.37% and 40.33% on PatchEval and SecBench, respectively. We further perform ablation studies to analyze the impact of different design components in EVIREPAIR and investigate their contributions to the overall repair performance.

Our contributions are summarized as follows:

• We propose EVIREPAIR, an evidence-driven multi-agent framework for repository-level automated vulnerability repair.

• We design evidence review mechanisms for vulnerability diagnosis and patch synthesis, which validate vulnerability understanding and patch correctness, respectively.

• We conduct extensive experiments demonstrating that EVIREPAIR consistently outperforms existing agent-based baselines across different frameworks and LLMs.

References (2)

  • Write the first structured findings file as soon as an evidence-qualified verdict or refinement direction is available, then update it if later checks change the result
  • - review findings JSON: {{FINDINGS_OUTPUT_PATH}} - validation matrix review updates: {{VALIDATION_MATRIX_PATH}} The findings JSON must follow the reviewer system prompt schema and include all required dimensions