# NVD CVE Search - Vulnerabilities, CVSS, CPE & CISA KEV (`zhucl1006/nvd-cve-vulnerability-search`) Actor

Search the NIST National Vulnerability Database (official API 2.0) by keyword, vendor/product, CPE, CVE ID, severity, CWE and date. Get CVSS 3.1/4.0 scores, vectors, CWEs, affected products, references and CISA known-exploited flags. Built-in rate limiting; optional free key.

- **URL**: https://apify.com/zhucl1006/nvd-cve-vulnerability-search.md
- **Developed by:** [leo zhu](https://apify.com/zhucl1006) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 cve returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## NVD CVE Search - Vulnerabilities, CVSS Scores, Affected Products & CISA KEV

Search the **NIST National Vulnerability Database (NVD)** - 300,000+ CVEs - through the **official NVD API 2.0** and get one clean JSON row per vulnerability: CVE ID, dates, status, description, **CVSS 3.1 / 4.0 / 2.0** score + severity + vector, CWE weaknesses, affected **vendor:product** list and CPE version ranges, references (patches, advisories, exploits) and **CISA Known Exploited Vulnerabilities** fields (date added, due date, required action).

The NVD API is free but strictly rate-limited (5 requests per 30 seconds without a key). This actor handles pacing, 120-day date windows, retries and paging for you, so a weekly monitor just works.

### Who uses it

- **Security teams, SOC & vulnerability management**: daily feed of new CRITICAL/HIGH CVEs for the vendors you run.
- **MSPs / MSSPs**: per-client product watchlists (fortinet:fortios, citrix, vmware...) into tickets, Slack or a SIEM.
- **Security vendors & researchers**: datasets by CWE, vendor or year; KEV tracking.
- **Compliance / risk & insurance**: evidence of exposure to known-exploited CVEs.

### Input

| Field | Description |
|---|---|
| `keywords` | Words in the description (multi-word = exact phrase). |
| `vendorProducts` | `vendor:product` or `vendor`, e.g. `apache:http_server`, `cisco`. |
| `cveIds` | Specific CVEs to look up. |
| `cpeNames` | Exact CPE 2.3 names (advanced). |
| `severities` | CRITICAL / HIGH / MEDIUM / LOW (CVSS v3). |
| `cwe` | e.g. `CWE-79`. |
| `publishedWithinDays` / `modifiedWithinDays` | Monitor windows (any length, split automatically). |
| `knownExploitedOnly` | Only CISA KEV CVEs. |
| `maxItemsPerQuery`, `newestFirst` | Volume and order. |
| `includeCpes`, `includeReferences` | Optional detail blocks. |
| `apiKey` | Optional free NVD key for faster big runs. |

Default input looks up CVE-2021-44228 and returns that one public vulnerability. No API key. Clear the CVE id to search by keyword, product or date.

```json
{ "vendorProducts": ["fortinet:fortios", "citrix", "ivanti"], "severities": ["CRITICAL", "HIGH"], "publishedWithinDays": 30, "maxItemsPerQuery": 200 }
```

### Output (one row per CVE)

```json
{
  "cveId": "CVE-2021-44228", "published": "2021-12-10T10:15:09.143", "lastModified": "2026-08-11T19:33:44.513", "vulnStatus": "Analyzed",
  "description": "Apache Log4j2 2.0-beta9 through 2.15.0 ... JNDI features ...", "severity": "CRITICAL", "score": 10.0,
  "cvss31Vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H", "attackVector": "NETWORK",
  "cwes": ["CWE-20", "CWE-400", "CWE-502", "CWE-917"], "vendorProducts": ["siemens:6bk1602-0aa12-0tp0_firmware", "...", "apache:log4j"],
  "knownExploited": true, "cisaExploitAdd": "2021-12-10", "cisaActionDue": "2021-12-24",
  "affectedCpes": [{ "criteria": "cpe:2.3:o:siemens:6bk1602-0aa12-0tp0_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.7.0" }, "..."],
  "references": [{ "url": "http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html", "tags": ["Third Party Advisory", "VDB Entry"] }, "..."],
  "nvdUrl": "https://nvd.nist.gov/vuln/detail/CVE-2021-44228", "query": "CVE-2021-44228"
}
```

`RUN_SUMMARY` in the key-value store shows total matches per search, requests made and duration.

### Speed

Without a key: about 2,000 CVEs per request, one request every 6.5 seconds - a 7-day monitor finishes in ~10 seconds. With a key: ~10x faster.

### Pricing (pay per event)

- **$0.002 per CVE saved** (`cve`) - 500 CVEs = $1. This is the price shown in the Store.
- Tiny start fee per run (`apify-actor-start`, $0.00005). Failed searches are not charged.
- There is no charge per dataset item. One saved CVE is one `cve` event.

### Data source & license

- "This product uses data from the NVD API but is not endorsed or certified by the NVD." NVD data is a U.S. government work (public domain); CVE records © MITRE under the CVE Terms of Use. KEV data from CISA.
- Only public vulnerability data. Not affiliated with NIST, MITRE or CISA.

# Actor input Schema

## `keywords` (type: `array`):

Words in the CVE description, e.g. wordpress, remote code execution, fortinet. Multi-word keywords match the exact phrase. One search per line.

## `vendorProducts` (type: `array`):

CPE vendor and product, e.g. apache:http_server, microsoft:exchange_server, fortinet:fortios, or just a vendor (cisco). One search per line.

## `cveIds` (type: `array`):

Look up specific CVEs, e.g. CVE-2021-44228. The default is one public CVE so a run with untouched input returns a result. Clear it to search by keyword, product or date instead.

## `cpeNames` (type: `array`):

Full CPE 2.3 names, e.g. cpe:2.3:o:microsoft:windows_10:1607:*:*:*:*:*:*:\*

## `severities` (type: `array`):

Empty = any severity.

## `cwe` (type: `string`):

Only CVEs with this weakness, e.g. CWE-79 (XSS), CWE-89 (SQL injection).

## `publishedWithinDays` (type: `integer`):

Only CVEs published in the last N days (0 = any). Use 1-7 for a daily/weekly monitor. Longer ranges are split into 120-day windows automatically.

## `modifiedWithinDays` (type: `integer`):

Only CVEs changed in the last N days (re-scored, new references...). Ignored if 'Published within' is set.

## `knownExploitedOnly` (type: `boolean`):

Only CVEs in CISA's Known Exploited Vulnerabilities catalog.

## `newestFirst` (type: `boolean`):

Return the most recently added CVEs first.

## `maxItemsPerQuery` (type: `integer`):

Stop after this many CVEs per keyword, product, CPE or CVE-id line. The default is 5 so a first run stays small.

## `includeCpes` (type: `boolean`):

Vulnerable CPE strings with version ranges (larger rows).

## `includeReferences` (type: `boolean`):

Advisories, patches and exploit links with NVD tags.

## `apiKey` (type: `string`):

Free key from nvd.nist.gov/developers/request-an-api-key - about 10x faster for big runs. Not needed for monitors.

## Actor input object example

```json
{
  "keywords": [],
  "vendorProducts": [],
  "cveIds": [
    "CVE-2021-44228"
  ],
  "cpeNames": [],
  "severities": [],
  "publishedWithinDays": 7,
  "modifiedWithinDays": 0,
  "knownExploitedOnly": false,
  "newestFirst": true,
  "maxItemsPerQuery": 5,
  "includeCpes": true,
  "includeReferences": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "cveIds": [
        "CVE-2021-44228"
    ],
    "publishedWithinDays": 7,
    "maxItemsPerQuery": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhucl1006/nvd-cve-vulnerability-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "cveIds": ["CVE-2021-44228"],
    "publishedWithinDays": 7,
    "maxItemsPerQuery": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("zhucl1006/nvd-cve-vulnerability-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "cveIds": [
    "CVE-2021-44228"
  ],
  "publishedWithinDays": 7,
  "maxItemsPerQuery": 5
}' |
apify call zhucl1006/nvd-cve-vulnerability-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zhucl1006/nvd-cve-vulnerability-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KPVkO0hQLiAscFREf/builds/svvqnpANZcRTaF4Ur/openapi.json
