Packages
json
{
"kind": "package",
"ecosystem": "npm",
"name": "lodash",
"version": "4.17.20"
}ecosystem is one of npm, PyPI, Go, Maven, crates.io, NuGet and RubyGems.
The check: osv.vulnerabilities
A deterministic check against OSV.dev, the open database of advisories. It sends the ecosystem, name and version to https://api.osv.dev/v1/query, and nothing else.
- No advisories: pass.
- One or more: fail, with one finding for each advisory. The message is the advisory's summary and the
refits id, such asGHSA-35jh-r3h4-6jhm. - OSV.dev does not answer within 10 seconds, answers with an error, or sends something that is not JSON:
error, and the verdict isunknown. - More than 10 pages of results:
error. A partial list is never reported as complete.
Severity
Each finding takes the worst rating any source in the advisory gives:
- labels such as GitHub's
MODERATEor Ubuntu'smedium(none,negligibleandunimportantcount asinfo,moderateasmediumandimportantashigh); - a CVSS 3.0 or 3.1 vector, scored with the CVSS 3.1 base formula and rated on its scale: 0 is
info, below 4low, below 7medium, below 9high, and the restcritical.
CVSS 4 and CVSS 2 vectors are not scored. An advisory with no usable rating is reported as high, and its message says "(severity not provided; assumed high)".
Not checked
- Unpublished or zero-day vulnerabilities
- Malicious behaviour without an advisory (typosquats, install scripts)
- Whether this package is the right one for the job