List all known vulnerabilities of a package (free)
list_package_vulnerabilitiesList every OSV.dev advisory for a package across all versions, with affected ranges and fixed versions, to find security issues and pick safe dependency versions.
Instructions
WHAT: List every OSV.dev advisory recorded for one package across all of its versions (no version needed), with the affected version ranges and fixed versions for that package. WHEN TO USE: "what security issues has lodash had?", choosing a safe version before adding a dependency, or browsing advisories for a package when you have no exact version or advisory ID. WHEN NOT TO USE: to check exact pinned versions or a manifest and get upgrade recommendations use check_dependency_vulnerabilities (paid); for the full record of one advisory use get_vulnerability_details (free). BEHAVIOR: POST /v1/query to api.osv.dev without a version; follows OSV pagination up to 10 pages; typically 1-3 s. An unknown package name returns 0 rows, not an error (OSV does not distinguish). COST: free; no APIFY_TOKEN, nothing sent to Fairquery or Apify; OSV documents no rate limit. RETURNS: one type="vulnerability" summary row per advisory, newest published first; Errors: INVALID_ECOSYSTEM, OSV_FETCH_FAILED (retryable). PARAMETERS: ecosystem accepts aliases (pip -> PyPI, cargo -> crates.io, gem -> RubyGems, composer -> Packagist, golang -> Go, java -> Maven) and other OSV ecosystem names verbatim (e.g. "Debian:12"). name must match the published package exactly; affected_ranges and fixed_versions only cover entries for this exact package, not sibling packages the same advisory also lists. limit/offset page the sorted rows; every call re-queries OSV, which is free. withdrawn advisories are kept and carry a withdrawn timestamp. EXAMPLE: {"ecosystem":"npm","name":"lodash","limit":2} -> total 10, newest first: {"id":"GHSA-r5fr-rjxr-66jc","severity":"HIGH","affected_ranges":[{"introduced":"4.0.0","fixed":"4.18.0"}],"fixed_versions":["4.18.0"],...}, then GHSA-f23m-r3pf-42rh.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required. Package name exactly as published: npm "lodash" or "@scope/pkg", PyPI "django", Go module path "github.com/gin-gonic/gin", Maven "groupId:artifactId". Example: "lodash" | |
| limit | No | Optional page size, integer 1-500, default 100. Example: 50 | |
| offset | No | Optional, integer >= 0, default 0; use nextOffset from the previous page. Example: 100 | |
| ecosystem | Yes | Required. OSV ecosystem, case-insensitive for the common ones: npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet, Packagist, Pub, Hex (aliases pip/cargo/gem/composer accepted). Example: "npm" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Rows in this page | |
| items | Yes | type="vulnerability" rows or one type="error" row | |
| total | Yes | Advisories found for the package | |
| offset | Yes | ||
| hasMore | Yes | ||
| nextOffset | Yes |