Skip to main content
QUICK REVIEW

[Paper Review] On the Threat of npm Vulnerable Dependencies in Node.js Applications

Mahmoud Alfadel, Diego Elias Costa|arXiv (Cornell University)|Sep 18, 2020
Security and Verification in ComputingComputer Science25 references11 citations
TL;DR

This study investigates the real threat of npm vulnerable dependencies in real-world Node.js applications by classifying vulnerabilities into three threat levels—low (unknown), medium (reported but unpublished), and high (publicly announced)—and analyzing 6,673 mature open-source applications. It finds that 94.91% of vulnerable dependencies pose low threat, and the majority of high-threat cases stem from application failure to update, not from inherent vulnerability exposure.

ABSTRACT

Software vulnerabilities have a large negative impact on the software systems that we depend on daily. Reports on software vulnerabilities always paint a grim picture, with some reports showing that 83% of organizations depend on vulnerable software. However, our experience leads us to believe that, in the grand scheme of things, these software vulnerabilities may have less impact than what is reported. Therefore, we perform a study to better understand the threat of npm vulnerable packages used in Node.js applications. We define three threat levels for vulnerabilities in packages, based on their lifecycle, where a package vulnerability is assigned a low threat level if it was hidden or still unknown at the time it was used in the dependent application (t), medium threat level if the vulnerability was reported but not yet published at t, and high if it was publicly announced at t. Then, we perform an empirical study involving 6,673 real-world, active, and mature open source Node.js applications. Our findings show that although 67.93% of the examined applications depend on at least one vulnerable package, 94.91% of the vulnerable packages in those affected applications are classified as having low threat. Moreover, we find that in the case of vulnerable packages classified as having high threat, it is the application's lack of updating that makes them vulnerable, i.e., it is not the existence of the vulnerability that is the real problem. Furthermore, we verify our findings at different stages of the application's lifetime and find that our findings still hold. Our study argues that when it comes to software vulnerabilities, things may not be as bad as they seem and that considering vulnerability threat is key.

Motivation & Objective

  • To understand the actual threat posed by npm vulnerable dependencies in real-world Node.js applications, challenging the assumption that all vulnerabilities are equally dangerous.
  • To address the gap in existing research by focusing not just on the existence of vulnerabilities, but on their real-world threat level based on lifecycle stage.
  • To investigate why some applications end up relying on high-threat vulnerable dependencies despite fixes being available.
  • To evaluate how vulnerability threat levels evolve throughout an application’s development lifecycle.
  • To provide a threat-aware framework for assessing the real risk of dependencies in software ecosystems.

Proposed method

  • Defined a three-tier threat classification for vulnerabilities based on their lifecycle: low (unknown), medium (reported but unpublished), and high (publicly announced).
  • Collected and analyzed 6,673 mature, active, open-source Node.js applications from public repositories using their package.json files to extract direct dependencies.
  • Mapped each dependency to its vulnerability status using the npm advisories dataset, which provides authoritative vulnerability records.
  • Tracked the evolution of vulnerability threat levels across application versions by analyzing version history and vulnerability disclosure timelines.
  • Conducted a longitudinal analysis to assess threat level trends across different stages of application development.
  • Identified root causes of high-threat vulnerabilities by checking whether a fix was available but not applied in the application.

Experimental results

Research questions

  • RQ1RQ1: How threatening are vulnerable dependencies in real-world Node.js applications, based on their lifecycle stage at the time of dependency?
  • RQ2RQ2: How do the threat levels of vulnerable dependencies evolve throughout an application’s development history?
  • RQ3RQ3: Why do some applications end up depending on high-threat vulnerable dependencies, despite fixes being available?

Key findings

  • 67.93% of the 6,673 examined Node.js applications depend on at least one vulnerable package, indicating widespread exposure.
  • 94.91% of all vulnerable dependencies in these applications are classified as low threat, meaning they were unknown or unreported at the time of use.
  • Among high-threat vulnerabilities, 90.8% were caused by application inaction—specifically, failure to update to a fixed version despite the fix being available.
  • The trend of low-threat dominance holds across all stages of application development, indicating that threat classification is stable over time.
  • The study confirms that not all vulnerabilities are equally dangerous; the real threat depends on disclosure timing and update behavior, not just vulnerability existence.
  • The findings suggest that vulnerability risk is often overstated in aggregate reports, and that application maintenance practices are a key factor in actual exploitability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.