~ 2 min read

Where to find npm vulnerabilities?

share this story on
If you are doing security research or just curious about finding npm vulnerabilities, let me share some resources to help you stay up-to-date with the latest security CVEs in the JavaScript ecosystem.

If you’re looking to educate yourself on the latest npm vulnerabilities, you’ve come to the right place.

In this article, I’ll call out some open sources to find security vulnerabilities in the npm ecosystem and how to stay up-to-date with the latest security threats.

Snyk Vulnerability Database

To kick us off, the Snyk Vulnerability Database is a great place to start. It’s a comprehensive database of vulnerabilities in open-source projects, including npm packages. You can search for vulnerabilities by package name or a CVE.

Disclaimer: I work at Snyk as a developer advocate

Snyk vulnerability database CVEs for npm vulnerabilities

Specifically what makes the Snyk vulnerability database stand out is the following highly enriched metadata:

  • The database is extremely timely, accurate and up-to-date
  • The vulnerability report includes dates of the security disclosure and also the publishing time
  • The vulnerability report includes a description the vulnerability itself with instructions on how to remediate it
  • Enriched metadata with links to the GitHub commit, GitHub pull request, a link to the npm package, or the researcher’s gist
  • It uses CVSS 4 scoring

GitHub Security Advisories

The GitHub Security Advisories is another good place to find vulnerabilities in npm packages. Specifically it is helpful due to the free-text search.

GitHub Security Advisories for npm vulnerabilities

Google’s OSV

Another security vulnerability resource is the Open Source Vulnerabilities (OSV). It’s a new project by Google that aims to provide a comprehensive vulnerability database for open-source projects.

Specifically, OSV also provides an API layer to query the vulnerabilities programmatically which could prove handy, depending on your use-case.

OSV for npm vulnerabilities


Node.js Security Newsletter

Subscribe to get everything in and around the Node.js security ecosystem, direct to your inbox.

    JavaScript & web security insights, latest security vulnerabilities, hands-on secure code insights, npm ecosystem incidents, Node.js runtime feature updates, Bun and Deno runtime updates, secure coding best practices, malware, malicious packages, and more.