Query Package Vulnerabilities
osv.security.queryCheck known vulnerabilities for a specific package version across ecosystems like npm, PyPI, Go, and more. Get CVE/GHSA IDs, severity scores, and affected package counts from Google OSV.dev.
Instructions
Check known vulnerabilities for a specific package version in any ecosystem (npm, PyPI, Go, Maven, Rust, NuGet, 14+ more). Returns CVE/GHSA IDs, severity scores, and affected package counts. Powered by Google OSV.dev — aggregates GitHub Security Advisories, NVD, and ecosystem-native databases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Package name (e.g. lodash, requests, gin-gonic/gin) | |
| version | Yes | Package version to check (e.g. 4.17.20, 2.25.0) | |
| ecosystem | Yes | Package ecosystem (npm, PyPI, Go, Maven, crates.io, NuGet, Packagist, RubyGems, etc.) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. | |
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. |