# NVD CVE API – CVSS, CWE, CISA KEV flag – $0.7/1k (`henrycrawl/nvd-cve-search`) Actor

Search NIST NVD CVEs by keyword, ID, severity, CWE, CPE or date. Returns CVSS score, vector, CWE, references and a CISA KEV exploited flag. Works with AI agents via Apify MCP. Pay per CVE; errors free.

- **URL**: https://apify.com/henrycrawl/nvd-cve-search.md
- **Developed by:** [Henry Crawl](https://apify.com/henrycrawl) (community)
- **Categories:** Developer tools, MCP servers, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.70 / 1,000 cve results

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 API + CISA KEV flag

Searching the NIST National Vulnerability Database by hand is slow, and its API caps date ranges at 120 days, throttles to 5 requests / 30 s and returns the oldest CVEs first. This actor handles all of that and adds the CISA "Known Exploited Vulnerabilities" flag to every CVE.

### What you can search

- **Keyword** in the description (e.g. `log4j`, `wordpress plugin`, `openssl`), optionally as an exact phrase
- **CVE IDs** (direct lookup)
- **CVSS v3 severity**: LOW / MEDIUM / HIGH / CRITICAL
- **CWE** (e.g. `CWE-79`), **CPE 2.3 name** (e.g. `cpe:2.3:a:apache:log4j:2.14.1:*:*:*:*:*:*:*`)
- **Published** or **last-modified** date range (any length, split automatically into 120-day windows)
- **Only CISA KEV** (exploited in the wild)
- Newest first (default) or oldest first

### Output fields

| Field | Description |
|---|---|
| cveId | CVE identifier |
| description | English description |
| cvssScore, severity, vector, cvssVersion | Best available CVSS metric (v3.1 > v4.0 > v3.0 > v2), NVD primary score when present |
| exploitabilityScore, impactScore, cvssSource | CVSS sub-scores and who scored it |
| cwe | List of CWE IDs |
| published, lastModified, vulnStatus | NVD dates and analysis status |
| inKev | `true` if listed in the CISA KEV catalog |
| kevDateAdded, kevDueDate, kevRequiredAction, kevRansomwareUse, kevName | KEV details |
| affectedProducts | `vendor:product` pairs from vulnerable CPEs (max 30) |
| cpes | Vulnerable CPE 2.3 strings (max 50) |
| references | Reference URLs (max 40) |
| url | NVD detail page |

### Example output (real run)

```json
{
 "cveId": "CVE-2021-44228",
 "description": "Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters...",
 "cvssScore": 10,
 "severity": "CRITICAL",
 "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
 "cvssVersion": "3.1",
 "cvssSource": "nvd@nist.gov",
 "exploitabilityScore": 3.9,
 "impactScore": 6,
 "cwe": [
  "CWE-20",
  "CWE-400",
  "CWE-502",
  "CWE-917"
 ],
 "published": "2021-12-10T10:15:09.143",
 "lastModified": "2026-08-11T19:33:44.513",
 "vulnStatus": "Analyzed",
 "inKev": true,
 "kevDateAdded": "2021-12-10",
 "kevDueDate": "2021-12-24",
 "kevRequiredAction": "For all affected software assets for which updates exist, the only acceptable remediation actions are: 1) Apply updates; OR 2) remove affected assets from agency networks. Temporary mitigations using one of the measures provided at https://www.cisa.gov/uscert/ed-22-02-apache-log4j-recommended-mitigation-measures are only acceptable until updates are available.",
 "kevRansomwareUse": "Known",
 "kevName": "Apache Log4j2 Remote Code Execution Vulnerability",
 "affectedProducts": [
  "siemens:6bk1602-0aa12-0tp0_firmware",
  "siemens:6bk1602-0aa22-0tp0_firmware",
  "siemens:6bk1602-0aa32-0tp0_firmware"
 ],
 "cpes": [
  "cpe:2.3:o:siemens:6bk1602-0aa12-0tp0_firmware:*:*:*:*:*:*:*:*",
  "cpe:2.3:o:siemens:6bk1602-0aa22-0tp0_firmware:*:*:*:*:*:*:*:*"
 ],
 "references": [
  "http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html",
  "http://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.html",
  "http://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.html"
 ],
 "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-44228",
 "type": "result",
 "status": "OK",
 "scrapedAt": "2026-11-21T16:03:51.688780+00:00"
}
```

### Pricing

**$0.70 per 1,000 CVEs** (pay per result). Error rows (bad input, CVE not found) are free. Set `maxResults` to cap your cost.

Speed: without an API key the actor respects NVD's public limit (one request every ~6 s, up to 2,000 CVEs per request). Add your free NVD API key in `nvdApiKey` for ~10x faster large runs.

### Use with AI agents (MCP)

Connect this actor to Claude, Cursor or any MCP client:

`https://mcp.apify.com/?tools=henrycrawl/nvd-cve-search`

Ask things like "List critical CVEs published this week that are in CISA KEV" or "Which CVEs affect log4j 2.14.1?".

### Input examples

```json
{"keyword": "log4j", "maxResults": 20}
```

```json
{"severity": "CRITICAL", "publishedFrom": "2026-09-01", "publishedTo": "2026-11-20", "maxResults": 200}
```

```json
{"onlyKev": true, "cweId": "CWE-78", "maxResults": 100}
```

```json
{"cveIds": ["CVE-2021-44228", "CVE-2023-4863"]}
```

Data: NIST NVD (public domain) and CISA KEV catalog. This product uses the NVD API but is not endorsed or certified by the NVD.

# Actor input Schema

## `keyword` (type: `string`):

Words to search in CVE descriptions (e.g. log4j, wordpress plugin, openssl). Leave empty to filter only by the other fields.

## `exactMatch` (type: `boolean`):

When the keyword has several words, match them as one exact phrase.

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

Optional list of CVE IDs to look up directly (e.g. CVE-2021-44228).

## `severity` (type: `string`):

Only CVEs with this CVSS v3 severity.

## `cweId` (type: `string`):

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

## `cpeName` (type: `string`):

Only CVEs affecting this exact CPE 2.3 name, e.g. cpe:2.3:a:apache:log4j:2.14.1:*:*:*:*:*:*:\*

## `onlyKev` (type: `boolean`):

Only CVEs listed in the CISA Known Exploited Vulnerabilities catalog.

## `publishedFrom` (type: `string`):

Earliest publish date (YYYY-MM-DD). Long ranges are split into 120-day windows automatically.

## `publishedTo` (type: `string`):

Latest publish date (YYYY-MM-DD). Defaults to today when only 'from' is set.

## `modifiedFrom` (type: `string`):

Earliest last-modified date (YYYY-MM-DD). Use for 'what changed this week' monitoring.

## `modifiedTo` (type: `string`):

Latest last-modified date (YYYY-MM-DD).

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

Return the most recently published CVEs first (default). Turn off for oldest first.

## `nvdApiKey` (type: `string`):

Optional free NVD API key (nvd.nist.gov/developers/request-an-api-key). Makes large runs ~10x faster. Without it the actor respects the public limit of 5 requests / 30 s.

## `maxResults` (type: `integer`):

Maximum number of CVEs for the whole run (you are only charged for delivered results).

## Actor input object example

```json
{
  "keyword": "log4j",
  "exactMatch": false,
  "severity": "",
  "onlyKev": false,
  "newestFirst": true,
  "maxResults": 20
}
```

# Actor output Schema

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

One row per result, plus free error rows (type = error).

## `summary` (type: `string`):

Counts for this run (SUMMARY record).

# 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 = {
    "keyword": "log4j",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("henrycrawl/nvd-cve-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 = {
    "keyword": "log4j",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("henrycrawl/nvd-cve-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 '{
  "keyword": "log4j",
  "maxResults": 20
}' |
apify call henrycrawl/nvd-cve-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,henrycrawl/nvd-cve-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/0W4al5EClRhxDnKRN/builds/zY0vnzRa99XzbuUbS/openapi.json
