Triage dependency vulnerabilities
triage_dependenciesUse this when the user wants to know which vulnerable dependencies to fix first, such as "which dependencies in this package-lock.json should I upgrade first?" or "triage my requirements.txt". Pass the text of a lockfile (package-lock.json, pnpm-lock.yaml, yarn.lock, poetry.lock, uv.lock, Cargo.lock, go.sum or go.mod), a package.json or a requirements.txt as manifest, or a packages list of ecosystem, name and exact version (npm, pypi, go, crates.io, maven, rubygems, nuget, packagist); only names and versions are read. Returns fix_first: by default the 3 packages to upgrade first, each with a priority (malicious, exploited, likely, routine or unknown), one line on why, the CVE ids and the version that fixes it, then a short list of the other vulnerable packages and a count per priority. It matches exact package versions to known advisories; it does not scan code or show that the vulnerable code is reached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many packages to put in fix_first (default 3) | |
| manifest | No | The text of one dependency file. Lockfiles give exact versions: package-lock.json, pnpm-lock.yaml, yarn.lock (npm), poetry.lock, uv.lock (PyPI), Cargo.lock (crates.io), go.sum or go.mod (Go). A package.json is read at the lowest version of each range, a requirements.txt only for == pins. Only names and versions are read; workspace, git, path and url entries are skipped. | |
| packages | No | Installed packages: ecosystem (npm, pypi, go, crates.io, maven, rubygems, nuget, packagist), name and exact version. Up to 300. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | Yes | ||
| clean | Yes | ||
| counts | Yes | ||
| notice | Yes | ||
| source | Yes | ||
| status | Yes | ||
| checked | Yes | ||
| message | No | ||
| skipped | No | ||
| summary | Yes | ||
| fix_first | Yes | ||
| truncated | No | ||
| advisories | No | ||
| vulnerable | Yes | ||
| not_triaged | Yes | ||
| skipped_count | No | ||
| also_vulnerable | Yes | ||
| also_vulnerable_total | No |