scan_lockfile
Scan composer.lock or package-lock.json dependencies for known vulnerabilities, check every package against OSV.dev, and rank findings by exploitation urgency.
Instructions
Scan a project's dependencies for known vulnerabilities in one go: takes a composer.lock or package-lock.json, checks every installed package against OSV.dev (GitHub advisories, Packagist/npm advisories, malicious packages), and ranks findings most urgent first. Pass path (project folder or lockfile), or the lockfile text in content with filename. Each result includes exploited (listed in CISA's Known Exploited Vulnerabilities = attacked in the wild now) and epss (FIRST probability of exploitation in the next 30 days, 0-1).
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": "scan_lockfile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to a project folder, or to a composer.lock / package-lock.json file | |
| content | No | Full text of the lockfile | |
| filename | No | Which lockfile `content` is | |
| includeDev | No | Also scan dev-only dependencies |