[Paper Review] Do Developers Update Their Library Dependencies? An Empirical Study on the Impact of Security Advisories on Library Migration
This empirical study investigates how developers respond to security advisories regarding outdated third-party library dependencies in 4,659 GitHub projects. Despite widespread reuse of libraries, 81.5% of systems retain outdated dependencies, and 69% of affected developers were unaware of vulnerabilities, revealing low responsiveness to security advisories and highlighting a critical gap in dependency maintenance practices.
Third-party library reuse has become common practice in contemporary software development, as it includes several benefits for developers. Library dependencies are constantly evolving, with newly added features and patches that fix bugs in older versions. To take full advantage of third-party reuse, developers should always keep up to date with the latest versions of their library dependencies. In this paper, we investigate the extent of which developers update their library dependencies. Specifically, we conducted an empirical study on library migration that covers over 4,600 GitHub software projects and 2,700 library dependencies. Results show that although many of these systems rely heavily on dependencies, 81.5% of the studied systems still keep their outdated dependencies. In the case of updating a vulnerable dependency, the study reveals that affected developers are not likely to respond to a security advisory. Surveying these developers, we find that 69% of the interviewees claim that they were unaware of their vulnerable dependencies. Furthermore, developers are not likely to prioritize library updates, citing it as extra effort and added responsibility. This study concludes that even though third-party reuse is commonplace, the practice of updating a dependency is not as common for many developers.
Motivation & Objective
- To understand the extent to which developers update their third-party library dependencies in real-world software projects.
- To examine how developers respond to security advisories for vulnerable dependencies.
- To identify barriers and motivations influencing library migration decisions.
- To model library migration patterns from both system and library perspectives using empirical data.
- To provide a publicly available dataset of 852,322 library dependency migrations for future research.
Proposed method
- Collected and analyzed 4,659 GitHub projects to track library dependency versions over time.
- Tracked migration events between library versions and across different libraries using version history and dependency metadata.
- Constructed a Library Migration Plot (LMP) to visualize migration patterns and identify trends.
- Conducted a survey of 69 developers who were affected by vulnerabilities to assess awareness and migration behavior.
- Used CVE database and other sources to identify security advisories and map them to vulnerable dependencies in the studied projects.
- Performed case studies on 8 projects to analyze migration decisions in depth.
Experimental results
Research questions
- RQ1To what extent do developers update their third-party library dependencies in practice?
- RQ2How responsive are developers to security advisories for vulnerable library dependencies?
- RQ3What factors influence developers’ decisions to migrate or retain outdated library versions?
- RQ4How do developers perceive the effort, risk, and responsibility associated with library updates?
- RQ5What patterns and characteristics define library migration behavior across different systems and libraries?
Key findings
- 81.5% of the 4,659 studied projects continued to use outdated versions of their library dependencies, indicating widespread failure to keep libraries up to date.
- 69% of developers who were affected by a security vulnerability were unaware of the issue, despite the existence of CVE advisories.
- Developers often prefer older, popular library versions over newer, potentially more secure ones, even when migration is feasible.
- The primary barriers to migration include lack of awareness, perceived low priority, and unclear responsibility for dependency maintenance.
- Security advisories alone are insufficient to trigger timely migration, as many developers do not act even when notified.
- The study reveals a significant gap between the theoretical importance of dependency updates and actual engineering practice in real-world software development.
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.