Original Sin of npm: A Study on Vulnerability Propagation in JavaScript Dependency Networks

  • Robinson, Michael; 
  • Halder, Sajal; 
  • Ahmed, Muhammad Ejaz; 
  • Ikram, Muhammad; 
  • Camtepe, Seyit; 
  • ... Kim, Hyoungshick
Citations

WEB OF SCIENCE

0
Citations

SCOPUS

0

초록

In software development, the widespread adoption of open-source software has led to a proliferation of reusable modules and package libraries such as the Node Package Manager (npm). While this approach can significantly reduce development time, it also introduces the risk of vulnerability inheritance where a dependent parent package inherits vulnerabilities from a referenced dependency package. Understanding vulnerability propagation is essential for assessing how vulnerabilities spread across components of a software package. This supports more accurate impact analysis and enhances threat detection and mitigation. There is a need for frameworks that capture propagation across multiple layers and dynamic environments, along with comprehensive simulation tools that reflect real-world software systems. In this paper, we investigate how a small number of vulnerable JavaScript packages contribute to the creation of a disproportionately large number of vulnerable packages. This paper presents insights from 1,515 reported vulnerabilities gathered from a custom-built vulnerability database containing 1,077,946 JavaScript packages sourced from 'npm-follower' and their associated dependency networks. Dependency networks were constructed using the deps.dev API, with vulnerabilities identified by parsing package names and version numbers through the Google Open Source Vulnerability API.Our findings reveal that 61.30% (660,748) of packages are reliant on one or more dependency packages, and 21.60% (232,836) of total packages have at least one known vulnerability throughout their dependency networks-of which most (42%) are of High severity. Moreover, we found that the number of vulnerabilities and affected packages on npm since 2015 has increased linearly-with R2 values of 0.97 and 0.96, respectively. We also found that it takes, on average, approximately 4 years and 11 months to fix a vulnerable package from when the first vulnerable version is published on npm - although publication times of vulnerabilities occur approximately 19 days after a fix is available. Finally, we observe a high concentration of frequently present vulnerabilities throughout dependency networks, with the top-7 most frequent vulnerabilities accounting for 25% of vulnerability cases and the top-23 most frequent accounting for 50%. Based on these findings, we propose recommendations for developers and package managers to mitigate the threat and occurrence of vulnerabilities within the npm dependency network and the broader software repository community.

키워드

JavaScript; npm; software dependencies; vulnerability propagation
제목
Original Sin of npm: A Study on Vulnerability Propagation in JavaScript Dependency Networks
저자
Robinson, Michael; Halder, Sajal; Ahmed, Muhammad Ejaz; Ikram, Muhammad; Camtepe, Seyit; Kim, Hyoungshick
DOI
10.1145/3779208.3785388
발행일
2026
유형
Proceedings Paper
저널명
ASIA CCS 2026 - Proceedings of the 21st ACM ASIA Conference on Computer and Communications Security
페이지
1213 ~ 1227