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
| Source | Run by | Role |
|---|---|---|
| CVE List | The CVE Program, with MITRE and many numbering authorities | Assigns stable identifiers to publicly disclosed vulnerabilities |
| National Vulnerability Database (NVD) | U.S. NIST | Enriches CVE records with severity scores and affected-product data |
| GitHub Advisory Database | GitHub | Reviewed advisories mapped to ecosystem package names and version ranges; feeds npm audit and Dependabot |
| OSV | An open project started by Google | A common schema and aggregated database across ecosystems, used by tools such as osv-scanner and pip-audit |
| PyPA Advisory Database | Python Packaging Authority | Python-specific advisories in OSV format |
| Go vulnerability database | The Go team | Advisories with affected symbols, used by govulncheck |
| RustSec Advisory Database | The Rust Secure Code working group | Advisories 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
- Different databases. Two scanners may consult different sources, so one flags an issue the other has not ingested yet.
- Name mapping. A CVE describes a product; mapping it to the right package name in each ecosystem is manual work, and mistakes happen.
- Range precision. Some advisories say "all versions before X" when only a narrower range was affected.
- Development-only dependencies. Many findings live in build tools that never ship to production. They still matter for your CI security, but at a different priority.
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.