Search CVEs
cve_searchSearch NVD for CVEs by keyword, affected product, severity, known-exploited status, and publication date. Filter results to prioritize relevant vulnerabilities.
Instructions
Search the NIST NVD for CVEs by keyword, affected product (CPE), severity, KEV status, and publication date range.
Args:
keyword (string): Terms matched against CVE descriptions.
cpe_name (string): CPE 2.3 string to match affected products.
severity ('LOW'|'MEDIUM'|'HIGH'|'CRITICAL'): CVSS v3 severity filter.
kev_only (boolean): Restrict to CISA KEV entries (default: false).
published_after / published_before (ISO-8601): Publication date window (max 120-day span).
limit (1-50, default 20), offset (default 0): Pagination.
response_format ('markdown'|'json', default 'markdown').
Returns (json): { total, count, offset, has_more, next_offset, results[] } where each result is a full CVE detail object.
Examples:
"Critical Apache Struts RCEs" -> keyword="apache struts", severity="CRITICAL".
"Known-exploited Fortinet bugs" -> keyword="fortinet", kev_only=true.
Errors:
"NVD rejected the request (400)" if a date span exceeds 120 days or a filter is invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page (1-50). | |
| offset | No | Pagination offset. | |
| keyword | No | Keyword(s) matched against CVE descriptions, e.g. 'apache struts rce'. | |
| cpe_name | No | CPE 2.3 name to match affected products, e.g. 'cpe:2.3:a:apache:log4j:2.14.1:*:*:*:*:*:*:*'. | |
| kev_only | No | Return only CVEs present in the CISA KEV catalog. | |
| severity | No | Filter by CVSS v3 base severity. | |
| published_after | No | ISO-8601 date; only CVEs published on/after this (max 120-day span with published_before). | |
| response_format | No | Output format: 'markdown' (default, human-readable) or 'json' (full structured data). | markdown |
| published_before | No | ISO-8601 date; only CVEs published on/before this. |