# check_component_security

**Credits:** 0 per call. **Plan:** All plans.

Looks up published CVE/GHSA advisories for components (by id) or repositories (by name), from the same data as the [`security_advisories`](/docs/security-advisories) warning. Free; use it before you pull, and on code you pulled earlier.

## Parameters

| parameter | type | required | default |
| --- | --- | --- | --- |
| `component_ids` | array | null | no |  |
| `names` | array | null | no |  |
| `packages` | array | null | no |  |

- `component_ids`: up to 25 ids from `search_components` or `get_component`.
- `names`: up to 25 repositories as `owner/repo` or a GitHub URL; a bare repo name matches every owner's repository with that name.

Advisory data (OSV, refreshed weekly) covers 8,372 repositories today (520 with at least one advisory, 4,116 advisories with severity, summary and fixed versions). `none_known` means no advisory in our data, not that the code is safe.

## Example call

```json
{
  "name": "check_component_security",
  "arguments": { "component_ids": ["<id>"], "names": ["nestjs/nest"] }
}
```

## What it returns

`{"results": [...], "summary", "coverage", "note"}`. Each result has `input`, `kind`, `repo`, `status` (`advisories`, `none_known` or `not_found`) and, with advisories, `count` and `advisories` (`id` plus a GitHub Advisory Database or NVD `url`).

## See also

[Tool reference](/docs/tools) (all tools on one page), [Error codes](/docs/errors), [Credits & plans](/docs/credits). Other tools: [`search_components`](/docs/tools/search-components), [`get_component`](/docs/tools/get-component), [`find_similar`](/docs/tools/find-similar), [`list_categories`](/docs/tools/list-categories), [`library_stats`](/docs/tools/library-stats), [`list_licenses`](/docs/tools/list-licenses), [`get_component_bundle`](/docs/tools/get-component-bundle), [`compose_starter`](/docs/tools/compose-starter), [`licence_report`](/docs/tools/licence-report).
