Understanding npm Developers’ Practices, Challenges, and Recommendations for Secure Package Development Conference: 19th International Conference International Workshop on Cooperative and Human Aspects of Software ; April 12–18, 2026; Rio de Janeiro, Brazil 19th International Conference Internationa
Anthony Peruma, Truman Choy, Gerald Lee, Italo De Oliveira Santos · 2026
Read Understanding npm Developers’ Practices, Challenges, and Recommendations for Secure Package Development Conference: 19th International Conference International Workshop on Cooperative and Human Aspects of Software ; April 12–18, 2026; Rio de Janeiro, Brazil 19th International Conference Internationa by Anthony Peruma, Truman Choy, Gerald Lee, Italo De Oliveira Santos (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-20240.txt.
Introduction
Anthony Peruma and three colleagues survey how developers in the npm ecosystem build packages securely. npm hosts a vast store of reusable code for modern software. Yet flaws in third-party packages have led to serious breaches in the applications that depend on them.
The authors ask developers about their practices, their challenges, and their recommendations for safer package development. First-hand accounts show where tools and habits fall short in daily work. Their findings can guide platform owners and teams who want security steps that developers will actually follow. Their answers point to habits that tools and team leads can fix.
Catalog record
| CREATOR | Anthony Peruma, Truman Choy, Gerald Lee, Italo De Oliveira Santos |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 59 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2601-20240
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Understanding npm Developers’ Practices, Challenges, and Recommendations for Secure Package Development Conference: 19th International Conference International Workshop on Cooperative and Human Aspects of Software ; April 12–18, 2026; Rio de Janeiro, Brazil 19th International Conference International Workshop on Cooperative and Human Aspects of Software (CHASE’26), April 12–18, 2026, Rio de Janeiro, Brazil DOI: 10.1145/3794860.3794908 ISBN: 979-8-4007-2484-8/2026/04 Anthony Peruma, Truman Choy, Gerald Lee, Italo De Oliveira Santos Abstract . 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. † † cc-license: by 1. Introduction Modern software development increasingly relies on third-party packages that provide pre-built functionality and libraries to accelerate application development ( 11 ) . Within this landscape, the Node Package Manager (npm) 1 1 1 https://www.npmjs.com/ , the default package manager for Node.js 2 2 2 https://nodejs.org/ , has become a key element of modern software ecosystems, facilitating developers in managing, distributing, and reusing code in an efficient and scalable way. With its vast registry of over 2 million packages and more than a billion monthly downloads ( 32 ) , npm enables developers to quickly use pre-built solutions, significantly reducing the time and effort required to build their applications ( 1 ) . However, this scale and interdependency introduce significant security challenges ( 42 ) . Vulnerabilities in third-party packages can cascade through the software supply chain, leading to severe security breaches and undermining trust in the ecosystem ( 24 ) . Recent high-profile security incidents in the npm ecosystem highlight the severity of this threat. In September 2025, a major npm attack compromised 18 popular libraries, injecting malicious code that hijacked cryptocurrency wallets and manipulated blockchain transactions. The attack began with a phishing scheme targeting the maintainer’s npm account. Once access was gained, the attacker published malicious versions of widely downloaded packages ( 23 ) . Such events underscore the socio-technical nature of software supply chain security, where technical measures and human behavior must be aligned to create a robust defense ( 37 ) . Although prior research has explored npm from various perspectives, including package abandonment ( 21 ) , maintainability and security analysis ( 10 ) , non-coding contributions ( 9 ) , supply chain dependencies and popularity ( 13 ; 41 ) , pull request acceptance factors ( 14 ) , ecosystem growth and dependency evolution ( 38 ) , the prevalence of trivial packages ( 1 ) , and vulnerabilities across ecosystems ( 40 ; 2 ) , there is limited understanding of the specific security practices and challenges faced by npm package developers. Developers are central to software development and play a crucial role in shaping the security of the systems they build. Therefore, to achieve effective software security, it is important to understand their practices, priorities, and challenges, often through qualitative empirical studies ( 15 ; 20 ) . To this end, we adopt a socio-technical approach, examining both the technical aspects and human factors of npm package security, which provides richer insights than purely technical analyses ( 34 ; 33 ) . By directly engaging with maintainers and contributors of real-world npm packages, our study aims to gather nuanced perspectives that accurately reflect the practices and challenges involved in achieving effective package security. 1.1. Goal and Research Questions In this study, we conduct a comprehensive survey of npm package maintainers and contributors, using a combination of quantitative and qualitative questions. The goal of this research is to develop an evidence-based understanding of how npm package developers 3 3 3 We use the term npm package developers as an umbrella term encompassing maintainers and contributors who publish, maintain, or contribute to npm packages. approach security by gathering insights directly from practitioners on how they perceive package security, what practices and tools they use, the challenges they face, and the improvements they recommend . Our findings aim to advance secure software development in open source software (OSS) package management, offering actionable insights for tooling, education, and ecosystem support. We aim to answer the following research questions (RQs): RQ1: How do npm developers perceive security for their packages? - Developers’ security practices are shaped by how they weigh security against other priorities ( 5 ; 25 ) . This RQ investigates how npm package developers prioritize security, aiming to reveal gaps between perceptions and actual threats to effectively guide security prioritization and tool design. RQ2: What security practices and tools do npm developers leverage in building and maintaining their packages? - As security practices evolve, developers must adopt tools and best practices to mitigate risks ( 5 ) . This RQ explores how npm package developers utilize security tools, identifying common and rare practices, gaps hindering adoption, deviations from guidelines, and practices needing redesign or better advocacy. RQ3: What barriers hinder the secure development and maintenance of npm packages? - Understanding software security challenges is critical for improving practices and mitigating vulnerabilities ( 29 ) . This RQ identifies technical, organizational, and human barriers faced by npm package developers, providing evidence to guide interventions and tool improvements. RQ4: What improvements should be prioritized to strengthen security for npm packages? - Software security interventions often fail without practitioner input ( 27 ) . In this RQ, we gather developer-prioritized improvements and recommendations to ensure that proposed solutions for npm package security are based on real-world practitioner experience. 1.2. Contributions This study offers the following key contributions based on the real-world experiences and practices of npm package developers: • Empirical insights into how developers perceive the security of their packages and the tools and practices they use in ensuring secure development and maintenance. • Insights that extend beyond purely technical barriers, uncovering human, organizational, and ecosystem-level factors that prevent effective package security. • Practitioner-validated improvement priorities for secure package development and maintenance through an analysis