Repository-aware context analysis boosts CVSS severity prediction accuracy
CoSA improves CVSS base metric prediction accuracy by 14.4% and Macro-F1 by 15.3% over the best baseline
Software arXiv 14 Aug 2026 Method Prototype evidence
Published as “CoSA: Context-Aware Severity Assessment via Context Analysis with Large Language Models”
Why it matters
More accurate, repository-aware severity scores can prioritize patching of high-impact vulnerabilities earlier, easing the bottleneck in vulnerability management pipelines.
Summary
CoSA dramatically improves automated CVSS v3.x severity prediction by leveraging repository-wide context. It reaches 47.22% accuracy and 34.15% macro-F1, a 14.4% and 15.3% absolute gain over the strongest function-level transformer baseline, and outperforms the best LLM prompting baseline by 36.8% accuracy and 43.1% macro-F1. The evidence comes from a real-world dataset of 6,816 CVSS-labeled instances and comparisons against multiple LLM and transformer baselines. The paper does not provide an abstract, so the summary relies on the introduction and evaluation sections.
What they found 1
- CoSA achieves the highest overall severity prediction performance
“CoSA achieves the best performance with 47.22% accuracy, 34.15% Macro F1, and 47.72% Weighted F1, outperforming all LLM prompting baselines and all Transformer based function level predictors.”
Caveats 4
- Attack Vector performance is lower than the Transformer baseline, indicating that added context does not help all metrics: "Attack Vector remains less stable, with CoSA lower than the Transformer baseline in both accuracy and Macro F1".
- The multi-agent prompting (EvalSVA) sometimes degrades performance, showing that more complex LLM prompting is not universally beneficial: "The EvalSVA-style multi-agent prompting strategy does not consistently improve model performance across different architectures."
- Our evaluation may be threatened by data leakage introduced by highly correlated instances.
- A further threat concerns the skewed label distributions in several CVSS metrics.
What’s new here 4
- Explicit reconstruction of whole-repo code property graphs to provide reachability and effect-propagation evidence
- Two-stage pruning (static structural pruning followed by LLM-guided relevance selection) to keep context budget low
- Metric-wise evidence summarization that feeds a lightweight predictor
- Demonstrated gains across several LLMs and transformer backbones, not just a single model