[Paper Review] Understanding npm Developers' Practices, Challenges, and Recommendations for Secure Package Development
The paper surveys 75 npm package developers to understand their security perceptions, practices, barriers, and recommended improvements for securing the npm ecosystem. It finds high value placed on security but gaps between perceived and actual package security, tool fatigue, and a need for better tooling and education.
Background: The Node Package Manager (npm) ecosystem plays a vital role in modern software development by providing a vast repository of packages and tools that developers can use to implement their software systems. However, recent vulnerabilities in third-party packages have led to serious security breaches, compromising the integrity of applications that depend on them. Objective: This study investigates how npm package developers perceive and handle security in their work. We examined developers' understanding of security risks, the practices and tools they use, the barriers to stronger security measures, and their suggestions for improving the npm ecosystem's security. Method: We conducted an online survey with 75 npm package developers and undertook a mixed-methods approach to analyzing their responses. Results: While developers prioritize security, they perceive their packages as only moderately secure, with concerns about supply chain attacks, dependency vulnerabilities, and malicious code. Only 40% are satisfied with the current npm security tools due to issues such as alert fatigue. Automated methods such as two-factor authentication and npm audit are favored over code reviews. Many drop dependencies due to abandonment or vulnerabilities, and typically respond to vulnerabilities in their packages by quickly releasing patches. Key barriers include time constraints and high false-positive rates. To improve npm security, developers seek better detection tools, clearer documentation, stronger account protections, and more education initiatives. Conclusion: Our findings will benefit npm package contributors and maintainers by highlighting prevalent security challenges and promoting discussions on best practices to strengthen security and trustworthiness within the npm landscape.
Motivation & Objective
- Assess how npm developers perceive and prioritize security in their packages.
- Identify the security practices and tools commonly used by npm developers.
- Reveal barriers hindering secure development and maintenance of npm packages.
- Gather developer-prioritized improvements to strengthen npm package security.
Proposed method
- Employ a respondent-driven online survey hosted in Qualtrics with 26 questions.
- Use purposive sampling to recruit 1,000 npm package developers and obtain 75 complete responses.
- Analyze quantitative data with descriptive statistics and the Borda Count for ranked questions.
- Analyze qualitative free-text responses via manual thematic coding by two researchers with negotiated agreement for reliability.
- Apply mixed-methods analysis to triangulate findings across questions and themes.

Experimental results
Research questions
- RQ1RQ1: How do npm developers perceive security for their packages?
- RQ2RQ2: What security practices and tools do npm developers leverage in building and maintaining their packages?
- RQ3RQ3: What barriers hinder the secure development and maintenance of npm packages?
- RQ4RQ4: What improvements should be prioritized to strengthen security for npm packages?
Key findings
- Developers regard security as important, yet most rate their own packages as only somewhat secure.
- Supply chain attacks and dependency vulnerabilities are top perceived threats in the npm ecosystem.
- Only 40% of respondents are satisfied with current npm security tools, with concerns about alert fatigue, usability gaps, and limited tool awareness.
- Automated practices (e.g., two-factor authentication, automated vulnerability scanning) are commonly adopted, while human-centered reviews and training are less frequent.
- Dependency hygiene decisions show many stop using dependencies due to abandonment or unpatched vulnerabilities, indicating maintenance and governance challenges.
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.