Vulnerability Data for Packages: Who Publishes It and How to Read It

When npm audit or pip-audit prints a wall of warnings, it is easy to treat the output as an oracle. It is really the end of a chain of databases, each with its own editors, formats and blind spots. Knowing that chain makes you much better at deciding which findings to act on.

The main sources

SourceRun byRole
CVE ListThe CVE Program, with MITRE and many numbering authoritiesAssigns stable identifiers to publicly disclosed vulnerabilities
National Vulnerability Database (NVD)U.S. NISTEnriches CVE records with severity scores and affected-product data
GitHub Advisory DatabaseGitHubReviewed advisories mapped to ecosystem package names and version ranges; feeds npm audit and Dependabot
OSVAn open project started by GoogleA common schema and aggregated database across ecosystems, used by tools such as osv-scanner and pip-audit
PyPA Advisory DatabasePython Packaging AuthorityPython-specific advisories in OSV format
Go vulnerability databaseThe Go teamAdvisories with affected symbols, used by govulncheck
RustSec Advisory DatabaseThe Rust Secure Code working groupAdvisories for crates, used by cargo audit

The number that matters most: affected range

For a package consumer the critical field is not the severity score but the affected version range and whether a fixed version exists. A "critical" advisory for a version range you do not use is noise; a "moderate" one in your exact version, on a code path you call, is real work. Advisories that list affected functions, as the Go database does, let tools such as govulncheck report only vulnerabilities your code can actually reach, which cuts noise dramatically.

Common reasons reports disagree

For package authors

If someone reports a vulnerability in your package, you can feed the chain correctly yourself. Publish a security policy (a SECURITY.md file) saying how to report privately. On GitHub, repository security advisories let you draft a fix privately, request a CVE and publish an advisory that flows into the GitHub Advisory Database with accurate version ranges. State the first fixed version precisely; consumers' tools depend on it. And note the fix in your changelog with the advisory identifier so people can match the two.

The OpenSSF publishes guidance on coordinated vulnerability disclosure for open-source maintainers, which is worth reading before you need it. For how signed builds fit into the same picture, see our Sigstore signing notes.

Related pages