Osv Query Commit
osv_query_commitQuery known vulnerabilities for one full Git commit hash (40 hexadecimal SHA-1 or 64 hexadecimal SHA-256 characters, case-insensitive). Abbreviated hashes are rejected. Returns advisory summaries, record-wide severity and GIT ranges with repositories and ordered fix events; use osv_get_vulnerability for full records. No package-specific fixedVersions are inferred. For overflow, repeat the original input with page: overflow.page. Continue the same path with offset: page.nextOffset and revision: page.revision until nextOffset is null. Retrieve entries[].deferred.path separately at offset zero without a revision. Do not pass the output page object as input. Pages are fresh lookups; restart a changed node without a revision. Transmission overflow and upstream truncated are separate; neither confirms clean.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Repeat the original commit with page: overflow.page first, then select path, offset: page.nextOffset and revision: page.revision. | |
| commit | Yes | Full Git commit hash: 40 SHA-1 or 64 SHA-256 hex characters, case-insensitive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | One bounded page of an addressed normalized node. | |
| error | No | Present when the call failed. Absent on success. | |
| vulns | No | Matching advisories. Empty confirms no known vulnerabilities only when truncated is false. | |
| preview | No | Compact view; overflow identifies omissions. This is not the complete record. | |
| overflow | No | Transmission overflow disclosure; independent of upstream truncation. | |
| queryMeta | No | Effective commit query and retrieved count. | |
| truncated | No | More OSV pages remain beyond the fetch cap; an empty truncated list is not confirmed clean. |