CoSA: Context-Aware Severity Assessment via Context Analysis with Large Language Models

📅 2026-08-13
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the challenges of missing repository-level evidence and noise interference in automated vulnerability severity assessment by proposing CoSA. The method constructs a Code Property Graph and employs a two-stage pruning strategy combined with an explicit metric-guided LLM retrieval mechanism to obtain precise contextual summaries. A lightweight Transformer is then utilized to predict CVSS metrics. Evaluated on a newly constructed high-quality dataset, experimental results demonstrate that CoSA achieves a 14.4% improvement in accuracy and a 15.3% increase in Macro-F1 score compared to existing baselines. These findings confirm that CoSA significantly outperforms current state-of-the-art methods, effectively enabling accurate repository-level vulnerability severity assessment.
📝 Abstract
Accurate vulnerability severity assessment is essential for prioritizing remediation, yet manually assessing Common Vulnerability Scoring System (CVSS) base metrics remains labor-intensive. Existing automated approaches often fail to capture the repository-level evidence required for assessing many CVSS base metrics. Such repository-aware assessment is challenging because relevant evidence is scattered across the entire repository under heavy noise. To address these challenges, we present CoSA, a Context-aware vulnerability Severity Assessment approach that infers CVSS base metrics from repository artifacts. CoSA constructs a code property graph (CPG) and applies a two-stage repository-pruning strategy: lightweight static pruning to preserve structurally proximal context, followed by an agentic large language model (LLM)-guided pruning step to retain CVSS-relevant context while collecting supporting evidence. The LLM then consolidates the retrieved repository context into compact, CVSS metric-wise textual summaries, which are fed into a lightweight transformer predictor. We also construct a higher-quality repository-level dataset comprising 6,816 CVSS labeled instances spanning 90 Common Weakness Enumeration (CWE) types. Experiments on real-world vulnerabilities show that CoSA consistently outperforms function-level and pure-LLM baselines. It improves prediction accuracy by 14.4% and Macro-F1 by 15.3% over the best-performing baseline, suggesting that explicit, metric-oriented repository context retrieval is crucial for practical and reliable automated severity assessment.
Problem

Research questions and friction points this paper is trying to address.

Vulnerability Severity Assessment
CVSS Base Metrics
Repository-level Evidence
Automated Assessment
Innovation

Methods, ideas, or system contributions that make the work stand out.

Context-Aware Severity Assessment
Repository-Level Pruning
Code Property Graph
Agentic LLM
CVSS Metric Summarization
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
J
Jinfeng Jiang
Singapore Management University, Singapore
Yikun Li
Yikun Li
Postdoctoral Researcher
Artificial intelligenceSoftware EngineeringCyber Security
C
Chengran Yang
Singapore Management University, Singapore
Ting Zhang
Ting Zhang
Monash University
Software EngineeringCyber SecurityInformation Retrieval
W
Wen Bin Leow
GovTech, Singapore
Y
Yide Yin
GovTech, Singapore
E
Eng Lieh Ouh
Singapore Management University, Singapore
L
Lwin Khin Shar
Singapore Management University, Singapore
David Lo
David Lo
Professor of Computer Science, Singapore Management University
AI4SESoftware AnalyticsSE4AISoftware MaintenanceSoftware Engineering