[Paper Review] How Quickly Do Development Teams Update Their Vulnerable Dependencies?
The paper introduces two metrics, Time-Out-Of-Date (TOOD) and Post-Fix-Exposure-Time (PFET), to quantify how up-to-date and how quickly vulnerable dependencies are updated, and conducts a large-scale study across NPM, PyPI, and Cargo to analyze dependency update practices.
Industry practitioners are increasingly concerned with software that contains vulnerable versions of third-party dependencies that are included both directly and transitively. To address this problem, projects are encouraged to both (a)~quickly update to non-vulnerable versions of dependencies and (b)~be mindful of the update practices of the dependencies they choose to use. To this end, researchers have proposed metrics to measure the responsiveness of the development teams of the packages in keeping their dependencies updated: Mean-Time-To-Update (MTTU) and Mean-Time-To-Remediate (MTTR). While MTTU covers all dependencies, MTTR quantifies the time needed for a package to update its vulnerable dependencies. However, existing metrics fail to capture important nuances, such as considering floating versions and prioritizing recent updates, leading to inaccurate reflections of a development team's update practices. extit{The goal of this study is to aid practitioners in understanding how quickly packages update their dependencies.} We propose two novel metrics, Mean-Time-To-Update for dependencies (MTTU) and Mean-Time-To-Remediate for vulnerable dependencies (MTTR), that overcome the limitations of existing metrics. We conduct an empirical study using $163,207$ packages in npm ($117,129$), PyPI ($42,777$), and Cargo ($3,301$) and characterize how the ecosystems differ in MTTU and MTTR, as well as what package characteristics influence MTTU and MTTR. We found that most packages have a relatively fast dependency update practice. We further study whether MTTU can be used as a proxy for MTTR when sufficient vulnerability data is not available. As we did not find enough statistical evidence for a strong proxy, our findings suggest that MTTU could only be partially used (may be used but with caution) as a proxy for MTTR when vulnerability data is not available.
Motivation & Objective
- Motivate the need to quantify how up-to-date dependencies are to prevent software supply chain attacks.
- Define two new metrics, TOOD and PFET, that capture timing aspects of dependency updates and vulnerability exposure.
- Develop a temporal dependency resolution algorithm to stabilize dependency relations for measurement.
- Perform a large-scale empirical analysis across NPM, PyPI, and Cargo to characterize update behaviors.
- Open-source the dataset of package-dependency relations to support future research.
Proposed method
- Introduce Temporal Dependency Resolution (Algorithm 1) to stabilize dependency relationships over time intervals.
- Define Time-Out-Of-Date (TOOD) as the average aggregated time a package uses an outdated dependency version.
- Define Post-Fix-Exposure-Time (PFET) as the average aggregated time a package uses an outdated and vulnerable dependency version.
- Compute TOOD and PFET for each <package, dependency> pair across time intervals and aggregate per package.
- Use data from Google BigQuery (deps_dev_v1) and OSV.dev for dependencies and advisories.
- Apply statistical hypothesis testing and correlation analysis to compare TOOD and PFET distributions.
Experimental results
Research questions
- RQ1RQ1: How do packages update their dependencies (time out of date) in NPM, PyPI, and Cargo?
- RQ2RQ2: How do packages update their vulnerable dependencies (post fix exposure time) in NPM, PyPI, and Cargo?
- RQ3RQ3: Can time out of date effectively represent or substitute for post fix exposure time?
Key findings
- PyPI packages update dependencies faster than NPM and Cargo.
- Cargo packages update their vulnerable dependencies faster than NPM and PyPI.
- TOOD can serve as a proxy for PFET, based on distributional and correlation analyses.
- The authors provide a large-scale dataset of 26.8 million package–dependency relations across three ecosystems.
- The methodology accounts for open dependency requirements and downgrades through the Temporal Dependency Resolution approach.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.