Vulnerability scan
vulnerability_scanScan project lockfiles for OSV.dev vulnerabilities in installed and transitive versions, showing fix versions and where each dependency is pinned.
Instructions
Scan this project's lockfiles (npm/pnpm/yarn/bun, Cargo, Python, Go) for OSV.dev vulnerabilities in installed versions, transitives included, with fix versions and where each is pinned; package for one dep. Call when asked about security or CVEs. To vet a version first: dependency_check.
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": "vulnerability_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | detailed only: advisory rows per answer (default 200). | |
| offset | No | detailed only: advisory rows to skip; pass `truncated.next_offset` to read on. | |
| package | No | Only this package (any ecosystem, every installed copy, transitives included), with a `package_note` saying what the lockfiles hold for it. Use it to ask about one dependency instead of reading the whole report. | |
| include_dev | No | Include direct devDependencies (labelled `is_dev`, graded one level down). Default: true, as the 4DA app does; pass false for runtime dependencies only. Transitive dev/runtime scope may be unknown. | |
| project_path | No | Project directory to scan. Default: current working directory. | |
| force_refresh | No | Ask OSV.dev again about this project's dependencies instead of answering from the cache; a cached answer is kept until its replacement arrives (STALE if it does not). Dependency versions are re-read on every lockfile change regardless. Default: false. | |
| response_format | No | concise (default): one row per vulnerable package version (worst severity, the version that fixes all its advisories, advisory count and first ids, where it is pinned), the 40 most severe and 25 recommendations, with counts of anything left out. detailed: one row per advisory with references, most severe first, at most `limit` rows with a `truncated` block when there are more, plus platform-inactive advisories, maintenance notices, install drift and resolution provenance. | |
| severity_filter | No | Only show vulnerabilities at or above this level, by the advisory's own severity or the presented grade, whichever is higher; an advisory with no known severity is always shown. Maintenance notices and advisories on packages not built on this host are listed whole. `severity_filter.hidden` counts the rest. | |
| include_test_fixtures | No | Also scan lockfiles under test-fixture directories (tests/, test/, fixtures/, testdata/, __fixtures__/, conformance/ ...). Default: false; they are counted under coverage.not_scanned instead. |