Software Engineering
Study reveals how fast development teams patch vulnerable code dependencies
Researchers analyzed 163,000 software packages to measure the speed at which developers update insecure third-party libraries, proposing new metrics to better track remediation practices.
Security vulnerabilities in third-party code libraries represent a persistent challenge for software developers. A new academic study examines how quickly teams respond to these threats by updating their dependencies to non-vulnerable versions.
The Problem with Existing Metrics#
Current approaches to measuring update speed—such as Mean-Time-To-Update (MTTU) and Mean-Time-To-Remediate (MTTR)—fall short in several ways. They struggle to account for nuances like floating version specifications and fail to prioritize recent updates appropriately. This means existing measurements don't accurately reflect how development teams actually manage their dependency updates in practice.
New Framework for Measuring Update Speed#
Researchers have developed refined versions of these metrics that better capture real-world update behavior. The improved MTTU focuses on general dependency updates, while an enhanced MTTR specifically measures how long packages take to fix vulnerable dependencies. These new tools aim to give practitioners a clearer picture of update practices across the open-source ecosystem.
Findings Across Major Ecosystems#
The study examined 163,207 packages across three major repositories:
- npm: 117,129 packages
- PyPI: 42,777 packages
- Cargo: 3,301 packages
Overall, the research found that most packages maintain relatively swift dependency update practices. However, update speeds vary across different ecosystems, and certain package characteristics significantly influence how quickly teams respond to updates.
When Metrics Can Act as Substitutes#
The researchers also investigated whether general update speed (MTTU) could substitute for vulnerability-specific remediation time (MTTR) when sufficient security vulnerability data is unavailable. The analysis found insufficient statistical evidence to support MTTU as a reliable replacement, suggesting it can only be used cautiously as a proxy measurement under limited data conditions.