arXiv:2609.01503cs.SESep 2026

Manuscript Offprint

arXiv:2609.01503

The Data Problem in Software Vulnerability Analysis: Artifacts, Quality, and Consumption

Yu Nong, Yao Du, Tianxiang Xu, Haipeng Cai

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

YU NONG, Oakland University, USA

YAO DU, Macau University of Science and Technology, Macau SAR

TIANXIANG XU, Kent State University, USA

HAIPENG CAI, University at Buffalo, SUNY, USA

Learning- and LLM-based software vulnerability analysis is only as trustworthy as the data it is trained and evaluated on, yet that data is rarely examined as a first-class object. We investigate the data behind vulnerability analysis through a dataset-centric taxonomy that separates what an artifact is (code, metadata, patches, tests/PoCs, reasoning, traces), how good it is (realism, label evidence, scale, diversity, leakage, availability), and what it is used for. From a systematically assembled corpus of 1,522 papers covering 2016–2026 plus foundational earlier work we deep-code a tiered set of 111 anchor papers, backing every affirmative rubric-graded value with a verbatim span, and we report, per attribute, both how much it has been studied and how well datasets achieve it. The results trace an evidence ladder: executable artifacts are the only major type where 15 of the 24 datasets are both graded real-world and carry labels that received an independent check, while code-sample datasets—the largest category in both the auto-tagged corpus and the anchor set—are the least realistic: 20 of the 41 draw their vulnerabilities from authentic projects or CVEs, but only 3 keep the sample at the unit the code is deployed in, and only 2 do both—though these are coarse component tests, and just one code-sample dataset meets the codebook's stricter full-context real-world grade. Among these, leakage goes unaddressed by 49 of the 90 datasets where it applies, more than a quarter say nothing about availability, reasoning data has arrived only recently and is mostly model-generated, and primary trace corpora remain limited to three datasets, the total after a corpus-wide screen and a full-text check of every candidate it surfaced, with further datasets releasing traces secondarily behind benchmarks and harnesses. We distill these into an artifact×quality matrix and a research agenda for evidence-rich vulnerability data.

CCS Concepts: • Security and privacy → Software and application security; • Software and its engineering → Software verification and validation; • Computing methodologies → Machine learning.

Additional Key Words and Phrases: software vulnerabilities, datasets, data quality, benchmarks, large language models, coding agents

1 Introduction

Software vulnerabilities remain among the most consequential and persistent threats in computing, and the defenses against them have changed character twice within a decade. Traditional program analysis—static, dynamic, and symbolic—was increasingly complemented by data-driven detection, in which deep neural networks learn to flag vulnerable code from large labeled corpora, and more recently by large language models (LLMs) prompted, fine-tuned, or embedded in autonomous coding agents that now write, patch, and review software with little human supervision. What unites these waves is a dependence that is seldom stated outright: each is only as trustworthy as the vulnerability data it was trained and evaluated on.

Yet that data is rarely examined as an object in its own right. A detector reported at 95% accuracy on a popular corpus is trustworthy only insofar as the corpus’s labels are correct, its samples are realistic, its train and test splits

Authors' Contact Information: Yu Nong, Oakland University, Rochester Hills, Michigan, USA, yunong@oakland.edu; Yao Du, Macau University of Science and Technology, Macau, Macau SAR, yaodu19@gmail.com; Tianxiang Xu, Kent State University, Kent, Ohio, USA, txu8@kent.edu; Haipeng Cai, University at Buffalo, SUNY, Buffalo, New York, USA, haipengc@buffalo.edu.

  1. Manuscript submitted to ACM

Nong et al.

are independent, and its class distribution matches deployment—assumptions that, across the literature, quietly fail. Detectors lose more than half of their accuracy when moved to real-world code, in part because up to 68% of train/test pairs are near duplicates [16]; label accuracy in widely used corpora falls below 60%, and in one large patch-derived benchmark roughly one CVE in six carries a label that cannot be recovered reliably from the supplied static code alone [45]; and for most disclosed vulnerabilities no executable proof-of-concept exists to confirm them [31]. Each of these was reported as a finding about one dataset or one technique. Read together, they describe a common condition. Dataset-centric studies of vulnerability data exist (Section 2); what we have not found is one that spans the full artifact range from metadata through patches, executable proofs, reasoning, and traces, and that reports for each quality attribute how much it has been studied separately from how well datasets achieve it.

Earlier vulnerability-analysis workflows usually placed a human between a model's output and any change to the software. Even when poor data led to an incorrect prediction, a developer could still review the result before acting on it. Coding agents increasingly remove that intermediate review step: they write patches, execute code, and modify repositories directly. Recent measurements show the consequences when these systems rely on weak evidence. Between 4.3% and 6.0% of functionally correct agent patches are vulnerable with no attacker present, and an adversarial suggestion appended to an issue description drives that to 40.7% [121]. One in five agent trajectories contains an insecure action under ordinary operation, with no adversary present [73]; and the supply chain feeding these systems is unguarded enough that poisoning a single retrieval sample compromises roughly half of what they subsequently generate [83]. The benchmarks meant to catch such failures inherit the same data problems they are supposed to detect. Weak-evidence training and evaluation data may now fail to detect or prevent unsafe actions taken at machine speed and without review, rather than merely yielding a misleading number—its consequences are operational, not only statistical.

The evidence ladder. We argue that the failures above are not independent problems but reflect a common property of vulnerability data, which we call the evidence ladder. The artifacts the field works with range from those that merely assert a vulnerability to those that demonstrate it: a CVE/CWE label or a function tagged “vulnerable” is a claim; a security patch narrows where the flaw lives; a test or proof-of-concept exploit that runs demonstrates that the behaviour is reachable in the tested environment; reasoning adds explanatory content without extending that ordering, and execution traces are observational records that sit outside it. Section 2.2 makes this concrete by rendering one vulnerability as all six artifact types and asking, of each, what it lets a consumer conclude.

Stronger vulnerability evidence is generally more expensive to produce. At the strong-evidence end, an exploit that runs is both an artifact and independently checkable evidence that the behaviour it triggers is reachable. Producing such artifacts, however, requires substantially more effort than assigning metadata or extracting labeled code. The evidential strength of an artifact therefore affects what can be concluded about a vulnerability from that artifact alone, while production cost affects how much data of that type can practically be collected. As our study shows, the literature is largest at the weak-evidence end, where data is cheaper to obtain; executable work is now substantial in terms of paper count but remains far smaller as reusable datasets and is rarely used for training.

Scope. This study is about vulnerability data, not about the techniques that consume it. We include work that introduces, produces, evaluates, or improves vulnerability data, and work that reports a finding about the quality of existing data. We exclude work that merely applies an existing dataset to evaluate a technique without contributing to or reporting on the data itself, however strong that work may be on its own terms; Section 3 states the filter precisely. Detection, repair, and generation techniques appear here only as consumers whose requirements shape what data is Manuscript submitted to ACM built. We cover the full artifact range—code, metadata, patches, tests and exploits, reasoning, and traces—rather than a single artifact type or a single downstream task.

Closest prior work. The quality of vulnerability data is itself an active subject, and several studies have measured one facet of it carefully. Croft et al. audit five widely used datasets against accuracy, uniqueness, consistency, and currency, and find substantial defects in each [28]; related audits report the same for label noise in deep-learning corpora [106] and for dataset construction more broadly [48, 169]. Others isolate a single failure: duplication between training and test partitions [16], labels that cannot be decided from the code they are attached to [45], and benchmarks whose scores reward the wrong capability [127]. A recent systematic review covers quality issues along the generation-and-training pipeline for LLM-based detection [55]. These studies provide detailed evidence on individual quality dimensions, usually within code-sample datasets built for detection, but they do not systematically compare artifact types, quality properties, and downstream uses across vulnerability analysis. That leaves three questions open, and they only become visible when the artifact types are examined side by side: (1) which kinds of vulnerability artifact the literature concentrates on, (2) whether quality varies systematically across those kinds, and (3) whether the data being built matches what its consumers now need. The gap matters more as new artifact types emerge: executable tests, reasoning annotations, and agent traces are recent enough that audits of code-sample corpora say nothing about them. The three questions are posed to address exactly that.

Approach. Rather than organizing the literature by technique (detection vs. repair vs. generation) or by model (GNN vs. LLM vs. agent), we examine three aspects about the data itself: what vulnerability data exists (its artifacts), how good it is (its quality), and what it is used for (its consumption). To that end, we construct a systematically assembled corpus of 1,522 papers covering 2016–2026 plus foundational earlier work, alongside the foundational earlier datasets the area still rests on; derive a taxonomy of three aspects and six quality attributes (Section 4); and deep-code a tiered shortlist of 111 anchor papers against it (Section 3). Deep coding is evidence-bound: no affirmative rubric-graded value is recorded without a verbatim span from the source, and absence values are checked by targeted full-text scans, yielding 729 quoted spans across the 111 papers. Every record was verified by the authors: 80 field by field against the source, and 31 that were first screened for conflicts, with every flag adjudicated independently by three authors at 96% mean pairwise agreement, and then checked field by field as well. That figure is agreement on the flagged questions, not a reliability coefficient for applying the taxonomy from scratch; Section 7 reports both procedures and what each measures.

Findings. The pattern is consistent across attributes. The coded quality profile varies with demonstrative strength, most clearly at the ends of the ladder, although part of that association follows from our operational definitions (Section 5.4): executable artifacts (tests, PoCs, exploits) are the only kind where a successful run gives direct evidence that the flaw is reachable—16 of 24 are authentically real and 23 of 24 carry labels that received an independent check—whereas code-sample datasets—the largest category in both the auto-tagged corpus and the anchor set, are the weakest on realism, of 41 such datasets we deep-code, one uses authentically real-world data, and only because its samples are whole smart contracts rather than functions sliced from a project. Two recurring omissions appear across artifact types: 49 of the 90 datasets where leakage applies never address train/test leakage, and more than a quarter make no statement about availability. Among the explanatory and observational artifacts, reasoning data has appeared only since 2024 and is dominated by model-generated annotation, while execution traces rest on three deep-coded contributions; nor is the data well understood, as no quality attribute has been the primary subject of more than fourteen studies. Availability shows a different pattern: executable artifacts, although the most expensive to build and difficult

Nong et al.

to reconstruct, are tied with patch datasets for the lowest public-availability rate among the major types, at 12 of 24. Reasoning and trace data are also among the least represented artifact types and have received the least direct study, despite their growing importance for AI-driven security.

Contributions. This study makes five contributions:

• A data-centric taxonomy of vulnerability data (Section 4) that cleanly separates what the data is, how good it is, and what it is for, with item-level definitions designed for consistent, auditable coding.

• A systematically assembled, auditable corpus and a deep-coding of 111 anchor papers in which every affirmative rubric-graded value is backed by a verbatim span, absence values having been checked by targeted full-text scans, together with the harvesting, coding, and analysis pipeline that produced them—reproducible end to end except for the historical LLM-assisted screening decisions, which are inspectable per record but not re-executable (Appendix A) (Section 3).

• A quality synthesis (Section 5.4) that, for each attribute, separates how much it has been studied from how well datasets actually achieve it—revealing patterns that a single per-dataset score would obscure—and shows that the six attributes constrain one another rather than varying freely.

• An artifact×quality matrix (Figure 4) that shows where specific quality weaknesses occur across artifact types.

• A statement of the field’s structural limitations (Section 6.2)—seven things existing data cannot do, including three failure modes the corpus cannot currently support work on—and an agenda for evidence-rich vulnerability data built from them (Section 6.3).

The rest of the study is organized as follows. Section 2 reviews the three eras of vulnerability analysis, introduces the running example, and positions this study against related reviews. Section 3 describes the literature search, screening, and coding protocol. Section 4 presents the taxonomy. Section 5 reports the results: corpus distributions, the artifact types with T2–T4 in demonstrative order followed by reasoning and traces as explanatory and observational categories, the per-attribute quality findings that form the study's core, consumption trends, and the synthesis matrix. Section 6 distils current good practice attribute by attribute, identifies the limitations that remain, and develops future directions for addressing them. Section 7 states the threats to validity, and Section 8 concludes.

References (100)

Couldn't load all references. Reload the page to try again.