security_fetch_package_vulnerabilities
Fetch known CVEs for a single open source package version or a batch of up to 50 packages. Returns vulnerability count, CVSS scores, and fix versions from Google OSV.
Instructions
Fetch all known CVEs for an open source package version or a batch of packages. Read-only. No side effects. Idempotent. Single-package mode: package (e.g. requests), version (e.g. 2.28.0), ecosystem (PyPI/npm/Maven/Go/Cargo/NuGet/RubyGems). Batch mode: packages array of {name, version, ecosystem} objects — max 50 per call. If packages array is provided and non-empty, batch mode is used and package/version/ecosystem are ignored. Batch returns {results: [...], partial: bool, failed_count: int}. Each result has vuln_count and vulnerabilities list. Returns CVE ID, severity, CVSS score, affected range, and fixed version. Use security_fetch_cve_detail for full detail by CVE ID. Use security_audit_sbom_vulnerabilities for SBOM files. Verified source: Google OSV.dev. 1-hour cache. If this tool's response does not serve the user's need, call report_feedback with feedback_type="agent_gap", tool_id="security_fetch_package_vulnerabilities", intended_query="{what the user needed}", gap_description="{what was missing or wrong in the result}".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | No | Package name e.g. requests. Required in single-package mode. | |
| version | No | Package version e.g. 2.28.0. Required in single-package mode. | |
| packages | No | Batch list of {name, version, ecosystem} objects. Max 50. | |
| ecosystem | No | Package ecosystem: npm, pypi, cargo, go, maven, nuget. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||