Inspect package vulnerabilities
Find known security advisories for a package release, with severity information, affected versions, and recommended upgrade versions. The response includes summary counts and a paginated advisory list.
Use this endpoint to check a dependency for known vulnerabilities or investigate which releases address them.
Selector catalogue
Use the following selectors with the fields query parameter to choose which fields the response includes. See Choose what the response includes for details.
| Selector | Data | Default |
|---|---|---|
vulnerabilities.summary | Advisory counts for the selected filters, including counts affecting this release and whether it has known vulnerabilities. | Yes |
vulnerabilities.advisories | One page of advisories, with affected version ranges and pagination information. Up to 100 advisories per page. | Yes |
vulnerabilities.upgrade_paths | Recommended versions to upgrade to. | Yes |
vulnerabilities.* | All vulnerability groups: summary, advisories, and upgrade_paths. | No |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Optional client attribution: trimmed printable ASCII, at most 80 bytes. Invalid optional values are dropped.
Optional client-version attribution: trimmed printable ASCII, at most 80 bytes. Invalid optional values are dropped.
Optional agent attribution: trimmed printable ASCII, at most 160 bytes. Invalid optional values are dropped.
Optional session attribution: trimmed printable ASCII, at most 128 bytes. Invalid optional values are dropped; no session is created.
Path Parameters
Canonical lowercase supported registry. vcpkg and zig are unsupported.
npm, pypi, hex, crates, nuget, maven, packagist, rubygems, go, swift Package name, 1–255 UTF-8 bytes without control characters; surrounding whitespace is preserved. Encode slash as %2F within one path segment.
1Query Parameters
Optional concrete version or upstream-supported constraint; omission/blank resolves latest. Trimmed; Go numeric versions gain v, Swift permits v tags, other registries reject numeric v/V prefixes.
Row/page scope, default affected. Explicit value forbidden without advisories selection; default scope metadata remains. Summary retains all three count scopes.
affected, non_affecting, all Optional CVSS minimum: low=0.1, medium=4, high=7, critical=9. Any threshold excludes unknown scores; omission includes them.
low, medium, high, critical Include withdrawn advisories; default false. Only exact true/false accepted.
Decimal integer page size 1–100, default 100. Explicit value forbidden without advisories selection.
1 <= x <= 100Opaque nonblank end_cursor from the previous page; preserved unchanged. Pin resolved version and filters; changes can invalidate the cursor. Forbidden without advisories selection.
1Comma-separated atomic groups from the catalogue. Default all three; explicit replaces defaults. vulnerabilities.* is the explicit bundle of all three. No leaf selectors or security.* alias. Maximum 2048 decoded UTF-8 bytes.
Use the case-sensitive selectors in the catalogue. Order and duplicate selectors do not affect the result. ASCII whitespace around selectors is ignored. The decoded value is limited to 2048 UTF-8 bytes. Empty or unknown selectors and repeated fields query parameters return 400 VALIDATION_ERROR. A group does not include nested groups unless the catalogue says so; only listed wildcard bundles are supported.
Response
Selected vulnerability evidence for the resolved package version
Resolved vulnerability report with selected evidence groups.