Package vulnerability check (OSV.dev)
osv_package_vulnsOpen-source package vulnerability check via OSV.dev for npm, PyPI, Go, crates.io, Maven, RubyGems, NuGet, Packagist and more, by ecosystem+name+version, purl, or up to 10 purls. Useful before installing or upgrading a dependency. Returns vulnerable flag, count, CVE/GHSA aliases, CVSS score and severity, fixed versions and a verified upgradeTo version. Errors: 400 invalid input, 502 OSV unavailable. PAID: $0.002 USDC per call on Base via x402 (MCP transport: retry with params._meta["x402/payment"]). Same tool over plain HTTP: GET /v1/osv/package.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "osv_package_vulns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | package name; Maven uses groupId:artifactId, Go uses the module path | |
| purl | No | alternative to ecosystem+name+version, e.g. pkg:npm/lodash@4.17.20 | |
| limit | No | max vulns returned per package, default 50 | |
| version | No | optional exact version; omit for all known advisories | |
| packages | No | batch: up to 10 comma-separated purls | |
| ecosystem | No | OSV ecosystem, case-insensitive: npm, PyPI, Go, crates.io, Maven, RubyGems, NuGet, Packagist, Hex, Pub, Debian:12 ... |