arXiv:2610.13071cs.CROct 2026

Manuscript Offprint

arXiv:2610.13071

CAPE - Context-Aware Prioritization Engine for Vulnerability Scoring and Management

Rakesh Podder, Viktoria Koscinski, Indrajit Ray

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

Rakesh Podder, Viktoria Koscinski, and Indrajit Ray

Computer Science Department, Colorado State University, Fort Collins, Colorado, USA

{Rakesh.Podder, Viktoria.Koscinski, Indrajit.Ray}@colostate.edu

Abstract—Vulnerability patching is critical for safeguarding an enterprise’s software ecosystem from cyber attacks. However, patching requires adequate preparation for potential system downtime and for unforeseen effects of the patched software on a live system. Thus, effective risk mitigation requires prioritization strategies that explicitly account for the operational context of the affected software. While vulnerability prioritization based on Common Vulnerability Scoring System (CVSS), Exploit Prediction Scoring System (EPSS) and CISA Known Exploited Vulnerabilities (KEV) catalog, can help, their differing goals and methodologies often lead to inconsistent, context-unaware decisions resulting in mis-allocated remediation efforts. In this work, we present the Context-Aware Prioritization Engine (CAPE), a vulnerability analysis framework that enriches each vulnerability scanner report of vulnerabilities (CVEs) with deployment-specific evidence. This evidence is used to perform vulnerability reachability, centrality, and exploitability analysis, producing a ranked priority score for the effective distribution of remediation effort. We evaluate CAPE on 30 open-source agentic applications comprising 6,138 scanner-reported CVEs. Our evaluation shows that a significant majority of CVEs are not reachable and exploitable which results in significant disparities between CAPE and context-free baselines — the CVSS, EPSS, and KEV. It also shows that CAPE consistently surfaces confirmed-exploitable CVEs at higher priority than all baselines, demonstrating that context-aware analysis provides substantially more accurate remediation guidance than context-free severity scoring alone.

Index Terms—severity scoring, vulnerability prioritization, SBOM, dependency graph

I. INTRODUCTION

Modern software development and supply chains are undergoing a structural shift. The rise of AI-assisted coding tools, autonomous agentic frameworks, and large-language-model-powered development environments has dramatically accelerated both the pace of software production and the depth of third-party dependency consumption [1], [2], [3], [4], [5]. A single agentic framework, such as LangChain [6], AutoGPT [7], or CrewAI [8], often depends on hundreds of specialized open-source packages for tool use, memory, retrieval, and model invocation. Unfortunately, this dependency on third-party libraries creates a compounding vulnerability management problem as dependencies cannot be freely upgraded to mitigate software vulnerabilities. Breaking changes in transitive dependencies, incompatible API revisions, and brittle build chains force development teams to pin packages at specific versions [9], [10], [11]. This phenomenon, commonly called dependency hell [12], often results in known-vulnerable versions remaining in production long after patches are available. A study of npm packages found that the median time between a vulnerability disclosure and a consuming project updating the affected dependency exceeds four months [13], [14].

Software Composition Analysis (SCA) [15], [16], [17], [18] can help mitigate this problem to some extent. Tools such as Syft [19] and Trivy [20] generate a Software Bill of Materials (SBOM) from an installed dependency tree and vulnerability scanners such as Grype [21], Trivy [20], and CVE-bin-tool [22] match each component name version against the National Vulnerability Database (NVD) [23], the Open Source Vulnerability database [24], and ecosystem-specific databases. The output is a list of vulnerabilities (henceforth referred to as CVEs). For a non-trivial application, this list routinely contains hundreds of entries [15]. Recent NVD trends reinforce the scale of the problem: 40,077 CVEs were published in 2024 and 48,185 in 2025 [25]. Once the vulnerability scanner output list of CVEs for a software is available, the dominant practice is to sort the CVEs by CVSS base score and address them top-down [26]. Alternatively, practitioners filter CVEs by EPSS probability [27] or CISA KEV membership [28].

We observe two critical weaknesses in this practice. First, SCA scanners match on (component, version) tuples without inspecting the deployed artifact. Consequently, a build-time bundle excluded from production, a component with a backported fix lacking a version bump, and a library imported on every request produce identical scanner outputs despite having radically different operational risks. The result is a substantial fraction of reported CVEs that cannot be triggered in any execution of the deployed application. We term these context-aware false positives. Second, CVSS base scores are assigned against generic target systems [29], [30], carrying no information about (i) whether the vulnerable component is architecturally central to the application, (ii) whether the buggy code is physically present in the installed artifact or has been patched out, (iii) whether the dependency is direct or transitive, or (iv) whether any execution path from an application entry point reaches the vulnerable code. Two CVEs with identical CVSS scores can represent completely different operational risks. Sorting hundreds of alerts purely by CVSS forces developers, who already face intense pressure to prioritize features over security [31], to allocate effort by noise rather than actual risk. The financial cost of this misallocation is substantial [31], [32]. One survey of 600 cybersecurity professionals found that 63% are unable to act on alert volume and 67% lack the time to mitigate all vulnerabilities [33].

Both of these observed weaknesses share a root cause: traditional SCA frameworks are context-blind. Prior work has proposed context-aware prioritization, but existing systems draw context from organizational history, infrastructure state, or service topology. None inspect the deployed artifact at the source-code level [34], [35], [36], [37], [38]. CAVP [34] and ACVRM [35] adjust scores via expert heuristics and organizational criteria respectively; VRANK [36] scores by inter-service role in composed SOA systems; AegisGuard [38] infers applicability from host telemetry and retrieval-augmented threat intelligence. Static reachability has been studied for Java and Maven ecosystems [39], [40], finding that only 11–13% of vulnerabilities are method-reachable in dependent projects, but neither work extends reachability to prioritization or patch-state confirmation. No prior system performs the conjunction of entry-point reachability analysis, artifact-level bug or patch-line signature matching, and graph-theoretic centrality measurement within a single, formally specified scoring model.

We present the Context-Aware Prioritization Engine (CAPE), an analysis framework that addresses both of these problems by enriching each CVE finding with deployment-specific evidence before scoring it. CAPE constructs a dependency graph of the target system with heterogeneous programming languages (python, java, js/ts, go, ruby, etc.) as an abstract syntax tree (AST). Multi-source breadth-first reachability analysis from application entry points eliminates context-aware false positives rather than merely deprioritising them. Fix GitHub commits retrieved from NVD and OSV are matched against installed artifact line signatures, confirming whether buggy or patched code is physically present regardless of declared version. Graph-theoretic centrality metrics — impact radius, hub score, and eigenvector centrality — quantify structural influence of affected components and files with bugs beyond what reachability alone expresses. This evidence is combined in a formally specified multi-dimensional scoring model with Analytic Hierarchy Process weights [41], weight redistribution for absent dimensions, Vulnerability Exploitability eXchange (VEX [42]) style regimes, and gate logic to create a ranked prioritization schema of CVEs that a developer can act on.

CAPE is evaluated on 30 open-source projects spanning Python, TypeScript, and JavaScript, comprising 6,138 scanner-reported CVEs. We address four research questions.

RQ1 What fraction of scanner-reported CVEs are statically unreachable or exploitable from any application entry point, and how does this rate vary across ecosystems?

RQ2 Does CAPE prioritize confirmed-exploitable CVEs more effectively than CVSS, EPSS, and KEV baselines, and under what structural conditions does each baseline compete?

RQ3 How consistently does CAPE separate high-evidence CVEs from low-evidence CVEs relative to CVSS, EPSS, EPSS-percentile, and KEV baselines?

RQ4 How sensitive is CAPE’s ranking to perturbations of the AHP weight prior, and how does the choice of centrality metric selection affect ranking quality across cases?

The primary contributions of this work are:

• We present Context-Aware Prioritization Engine (CAPE), a vulnerability analysis framework that enriches each vulnerability scanner-reported CVE with static reachability, code-level evidence, and graph-theoretic centrality into a context-aware priority ranking.

• We introduce a regime-adaptive AHP scoring model that marginalizes structurally absent evidence dimensions, preserving score monotonicity across deployment-specific evidence and VEX verdicts for each CVE.

• We quantify scanner-reported CVEs that are statically unreachable at scale. 43.3% of 6,138 scanner-reported CVEs across 30 open-source projects are statically unreachable, reaching 76.1% in the most extreme case and averaging 53.2% for TypeScript/JavaScript projects.

• We evaluate CAPE against four baselines, CVSS, KEV, EPSS, and EPSS percentile, on 30 open-source applications, achieving a 79.8% reduction in mean rank of first confirmed-exploitable CVE (3.4 vs. 16.9; median 1 vs. 7), with AUROC 0.908 vs. 0.454 and NDCG@10 0.652 vs. 0.227 for CVSS.

All code, data, and evaluation artifacts will be available upon publication.

References (60)