Generating Mitigations for Downstream Projects to Neutralize Upstream Library Vulnerability
Zirui Chen, Puhua Sun, Xing Hu, Xin Xia, Xiaohu Yang
Key points
From the paper's conclusion- We evaluate Lumen on 474 impacted functions associated with 94 vulnerabilities.
Abstract
Third-party libraries are essential in software development as they prevent the need for developers to recreate existing functionalities. However, vulnerabilities within these libraries pose significant risks to dependent projects. Upgrading dependencies is infeasible when no patched version is available or when downstream projects have strict version constraints. Moreover, repairing the vulnerability proves challenging when the source code of the library is inaccessible. State-of-the-art automatic vulnerability repair and automatic program repair methods both fail to address this issue. Therefore, mitigating library vulnerabilities without access to source code or available patches is crucial for a swift response to potential security attacks. Existing tools encounter challenges concerning generalizability and functional security. Upon vulnerability disclosure, Lumen prepares a pool of candidate mitigation strategies by retrieving explicit workarounds from public sources and supplementing the pool with generated strategies based on vulnerability reproduction behavior. Lumen then selects a suitable strategy, autonomously gathers repository-specific context, and adaptively generates a validated mitigation patch. We evaluate Lumen on 474 impacted functions associated with 94 vulnerabilities. Lumen successfully mitigates 393 functions, achieving a success rate of 82.91%, which substantially outperforms the adapted baseline in blocking vulnerability reproduction under our exploit-based evaluation. Additionally, our ablation study evaluates the contributions of strategy composition, strategy selection, and repository-level context collection. Further evaluations show that Lumen can mitigate vulnerabilities disclosed after the knowledge cutoff of the base model.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Agent-Based Automated Remediation for Vulnerabilities in Maven ProjectsProceedings of the ACM on Programming Languages · 2026
- Not Just Any Example: Security Requirements and Fix Patterns for Guiding LLM Vulnerability RepairarXiv · 2026
- Found, but Not Fixed : From Software Vulnerability Discovery to Fixes with Iterative LLM PipelinesarXiv · 2026
- PatchPorter: LLM-Driven Security Patch Porting via Version Tracing and Context Selection for NPMProceedings of the ACM on Software Engineering · 2026
- How Safe Are AI-Generated Patches? A Large-scale Study on Security Risks in LLM and Agentic Automated Program Repair on SWE-benchACM Transactions on Software Engineering and Methodology · 2026
- EviRepair: Evidence-Driven Agents for Reliable Vulnerability RepairarXiv · 2026