Check Package Vulnerabilities
docs_check_vulnerabilitiesCheck a package version for known vulnerabilities via OSV.dev and automatically fetch the fixed version's README, showing exactly what upgrading resolves.
Instructions
Check a real, specific package version against OSV.dev (Google-run, aggregates GitHub/PyPA/npm/RustSec advisories) — and, when a fix exists, automatically fetch that fixed version's README in the same call, so the result is "here's what's wrong" AND "here's exactly what upgrading looks like," not just a CVE list you have to research further yourself.
This is a live query against OSV.dev's public API for the exact package+version given. It never estimates or guesses risk — if OSV has no advisories on record for that version, this correctly reports zero vulnerabilities rather than implying danger that isn't documented. Note: this tool is more limited than dedicated vulnerability-intelligence tools (e.g. VulnCheck, Snyk) — it reports what OSV.dev has on file, not exploit activity or threat intelligence.
Args:
ecosystem ('npm' | 'pypi' | 'cargo')
package_name (string): exact package name
version (string, optional): specific version to check; defaults to the latest published version
include_fix_docs (boolean, default true): also fetch the README for the version that fixes the found vulnerabilities
Returns JSON with: vulnerability_count, vulnerabilities (array of {id, summary, severity, aliases, fixed_in, references}), recommended_fix (null, or {version, readme, truncated, source_url} for the version that resolves the found issues), source_url, fetched_at.
Error Handling:
Returns "Error: ..." if the package doesn't exist or OSV.dev can't be reached
vulnerability_count: 0 with an empty array is a normal, valid result — not an error
If fetching the fix's README fails, recommended_fix is null rather than the whole call failing — the vulnerability data itself is never withheld because of it
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Specific version to check. Defaults to the current latest published version if omitted. | |
| ecosystem | Yes | Which package registry the version belongs to: 'npm', 'pypi', or 'cargo'. | |
| package_name | Yes | Exact package name as published on the registry. | |
| include_fix_docs | No | When a vulnerability is found with a known fixed version, also fetch that version's README so the response includes what upgrading actually looks like. Set false to skip the extra fetch. |