# CVE Lookup – Bulk NVD Enrichment with EPSS & CISA KEV (`adamplaenitz/cve-lookup`) Actor

Enrich lists of CVE IDs or search NVD by keyword, CPE, date and CVSS: description, CVSS v3.1/v4.0 score and vector, CWE, EPSS probability, CISA KEV status (date added, due date, ransomware use), references and affected CPEs.

- **URL**: https://apify.com/adamplaenitz/cve-lookup.md
- **Developed by:** [Adam Plänitz](https://apify.com/adamplaenitz) (community)
- **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 enricheds

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

## CVE Lookup – Bulk NVD Enrichment with EPSS & CISA KEV

**Turn a list of CVE IDs – or a search by keyword, product (CPE), publication date and minimum CVSS score – into one clean, enriched record per CVE:** description, CVSS v3.1 and v4.0 base score, severity and vector, CWE, **EPSS** exploit probability and percentile, **CISA KEV** status (date added, remediation due date, known ransomware use), references and affected products (CPEs). Export as JSON, CSV or Excel, or connect to Google Sheets, Slack, Jira workflows, Make, Zapier, n8n or webhooks.

### What does it do?

- **Bulk lookup:** paste CVE IDs one per line – or any text containing CVE IDs (scanner output, advisories, tickets); IDs are extracted and de-duplicated.
- **Search NVD:** by keyword (all words or exact phrase), by CPE (`cpe:2.3:a:apache:log4j` for all versions or a full CPE name for one version), by publication date range or "last N days", optionally only CVEs in the CISA KEV catalog. Long date ranges are split into the 120-day windows NVD allows. Results are returned **newest first**.
- **Filter:** minimum CVSS base score (v3.x, otherwise v4.0, otherwise v2).
- **Enrich every CVE with:**
  - **NVD:** status, published and last-modified date, English description, CVSS v3.1 (or v3.0), CVSS v4.0 and v2 metrics (NVD primary score preferred), CWE IDs, references (advisories and patches first), vulnerable CPEs with version ranges.
  - **EPSS (FIRST.org):** probability of exploitation activity in the next 30 days, and percentile.
  - **CISA KEV:** in catalog yes/no, date added, due date, required action, known ransomware campaign use, vendor/product.
- **New CVEs not yet in NVD:** falls back to the official CVE record at CVE.org (CNA and CISA ADP data: description, CVSS, CWE) – marked with `dataSource: "CVE.org"`.

### Who is it for?

- **Vulnerability management and SecOps teams** prioritising findings (CVSS + EPSS + KEV in one row).
- **MSPs and consultants** preparing patch reports for clients.
- **Compliance teams** tracking CISA BOD 22-01 due dates.
- **Threat intelligence and research** – weekly reports on new critical CVEs for a product.
- **AI agents and automations** that need structured CVE context via API.

### Input

| Field | Default | Description |
|---|---|---|
| CVE IDs | – | One per line, or text containing CVE IDs. |
| Search: keyword | – | e.g. `OpenSSL`, `Fortinet FortiOS`. |
| Search: exact phrase | off | |
| Search: CPE | – | `cpe:2.3:a:apache:log4j` (all versions) or a full CPE 2.3 name. |
| Search: published from / to | – | `YYYY-MM-DD`. |
| Search: published in the last N days | – | e.g. 7 for a weekly report. |
| Minimum CVSS base score | – | 0–10, applies to IDs and search. |
| Only known exploited (CISA KEV) | off | |
| Maximum search results | 100 | Newest first. Does not limit the ID list. |
| NVD API key | – | Optional, free from [NVD](https://nvd.nist.gov/developers/request-an-api-key). Stored as an encrypted secret. Speeds up ID lookups about 10×. |
| Add EPSS scores / Add CISA KEV status | on | |
| Fall back to CVE.org | on | For CVEs NVD has not published yet. |
| References / affected CPEs per CVE | 10 / 20 | Totals are in `referenceCount` and `affectedCpeCount`. |
| Output not-found rows | on | Free rows for invalid, unknown and rejected IDs. |

### Output example (shortened)

```json
{
  "cveId": "CVE-2021-44228",
  "found": true,
  "dataSource": "NVD",
  "vulnStatus": "Analyzed",
  "published": "2021-12-10T10:15:09.143Z",
  "lastModified": "2026-08-11T19:33:44.513Z",
  "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 …",
  "cvssV3": { "version": "3.1", "baseScore": 10, "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H", "source": "nvd@nist.gov", "type": "Primary" },
  "cvssV4": null,
  "cwes": ["CWE-20", "CWE-400", "CWE-502", "CWE-917"],
  "references": [{ "url": "https://logging.apache.org/log4j/2.x/security.html", "tags": ["Release Notes", "Vendor Advisory"] }],
  "referenceCount": 103,
  "affectedCpes": [{ "criteria": "cpe:2.3:o:siemens:6bk1602-0aa12-0tp0_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.7.0" }],
  "affectedCpeCount": 372,
  "cvssScore": 10,
  "cvssSeverity": "CRITICAL",
  "cvssVersion": "3.1",
  "epss": 0.99999,
  "epssPercentile": 1,
  "epssDate": "2026-11-17",
  "inKev": true,
  "kevDateAdded": "2021-12-10",
  "kevDueDate": "2021-12-24",
  "kevKnownRansomware": true,
  "kevRequiredAction": "For all affected software assets for which updates exist, the only acceptable remediation actions are: …",
  "kevVendorProject": "Apache",
  "kevProduct": "Log4j2",
  "nvdUrl": "https://nvd.nist.gov/vuln/detail/CVE-2021-44228",
  "attribution": "This product uses data from the NVD API but is not endorsed or certified by the NVD. …"
}
```

Invalid inputs, unknown or reserved CVE IDs and rejected CVEs get a row with `found: false` or an `error` text – **free of charge**. A run summary (counts, data availability, API requests) is saved as `RUN-SUMMARY` in the key-value store.

### Pricing and speed

See the **Pricing** tab. You pay per **enriched CVE**; not-found, rejected and filtered-out CVEs are free.

Speed is set by the NVD rate limits: **without an API key NVD allows 5 requests per 30 seconds**, so ID lookups take about 6 seconds per CVE (100 CVEs ≈ 10 minutes). **With a free NVD API key** it is about 0.7 seconds per CVE. Searches return up to 2,000 CVEs per request and are fast either way (50 newest CVEs of the last 30 days ≈ 15 seconds).

### Data sources, licence and privacy

- **NVD CVE API 2.0** (NIST): U.S. Government work, public domain. *This product uses data from the NVD API but is not endorsed or certified by the NVD.*
- **EPSS** by [FIRST.org](https://www.first.org/epss), freely published scores; please credit FIRST when you republish them.
- **CISA Known Exploited Vulnerabilities catalog** (public domain; mirrored under CC0 1.0 on GitHub).
- **CVE.org** (fallback): CVE records © The MITRE Corporation, used under the [CVE Terms of Use](https://www.cve.org/Legal/TermsOfUse).
- Every item contains `license` and `attribution` fields.
- **This Actor is an independent tool and is not affiliated with, endorsed by or sponsored by NIST/NVD, FIRST, CISA or MITRE.** No personal data is processed.

### Limits

- NVD has a processing backlog: some recent CVEs have no NVD CVSS score or CPEs yet (`vulnStatus` "Received" / "Awaiting Analysis"). The CVE.org fallback only applies when NVD has no record at all.
- EPSS scores are published daily; CVEs from the last day or two usually have no EPSS score yet.
- NVD keyword search matches descriptions only. CPE search only finds CVEs that NVD has already analysed.
- The minimum CVSS filter is applied after download; a narrow date range or keyword keeps searches fast.

Questions or feature requests? Please open an issue in the **Issues** tab.

# Actor input Schema

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

CVE IDs to enrich, one per line (CVE-2021-44228). Lines with other text are scanned for CVE IDs, so you can paste advisories or scanner output. Duplicates are removed.

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

Search NVD descriptions, e.g. 'log4j', 'OpenSSL', 'Fortinet FortiOS'. All words must appear (unless exact phrase is selected).

## `keywordExactMatch` (type: `boolean`):

Match the keyword as an exact phrase.

## `cpe` (type: `string`):

Product filter as CPE 2.3, e.g. cpe:2.3:a:apache:log4j:2.14.1:*:*:*:*:*:*:\* (exact version) or cpe:2.3:a:apache:log4j (all versions).

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

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

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

Latest publication date (YYYY-MM-DD). Defaults to today.

## `publishedLastDays` (type: `integer`):

Alternative to the date fields, e.g. 7 for a weekly report. Ignored if 'published from' is set.

## `minCvss` (type: `string`):

Only return CVEs with a base score of at least this value (0–10), e.g. 7 for high and critical. Uses CVSS v3.x, otherwise v4.0, otherwise v2. Applies to IDs and search.

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

Only return CVEs listed in the CISA Known Exploited Vulnerabilities catalog. On its own (without other search fields) it lists the KEV CVEs from NVD.

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

Maximum number of CVEs returned by the search (newest first). Does not limit the CVE ID list.

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

Free key from https://nvd.nist.gov/developers/request-an-api-key. Without a key NVD allows 5 requests per 30 seconds (about 6 seconds per CVE ID); with a key 50 per 30 seconds. Stored encrypted.

## `includeEpss` (type: `boolean`):

Adds the FIRST EPSS exploit probability (next 30 days) and percentile.

## `includeKev` (type: `boolean`):

Adds whether the CVE is in the CISA Known Exploited Vulnerabilities catalog, with date added, due date, required action and known ransomware use.

## `fallbackToCveOrg` (type: `boolean`):

If NVD has no record yet (new CVEs), take description, CVSS and CWE from the official CVE record (CNA and CISA ADP data).

## `maxReferences` (type: `integer`):

Maximum number of reference links per CVE (total count is in referenceCount).

## `maxCpes` (type: `integer`):

Maximum number of vulnerable CPE entries (with version ranges) per CVE (total count is in affectedCpeCount).

## `includeNotFound` (type: `boolean`):

Adds free rows for invalid, unknown and rejected CVE IDs.

## Actor input object example

```json
{
  "cveIds": [
    "CVE-2021-44228",
    "CVE-2023-4863",
    "CVE-2024-3094"
  ],
  "keywordExactMatch": false,
  "onlyKev": false,
  "maxResults": 100,
  "includeEpss": true,
  "includeKev": true,
  "fallbackToCveOrg": true,
  "maxReferences": 10,
  "maxCpes": 20,
  "includeNotFound": true
}
```

# Actor output Schema

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

One item per CVE with NVD data, EPSS and CISA KEV status, plus free rows for unknown IDs.

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

Counts of enriched, not found and filtered CVEs, data availability and API requests.

# 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",
        "CVE-2023-4863",
        "CVE-2024-3094"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("adamplaenitz/cve-lookup").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",
        "CVE-2023-4863",
        "CVE-2024-3094",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("adamplaenitz/cve-lookup").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",
    "CVE-2023-4863",
    "CVE-2024-3094"
  ]
}' |
apify call adamplaenitz/cve-lookup --silent --output-dataset

```

## MCP server setup

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

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/uMlRVOw7LrciWnils/builds/sCyxiSrCq28igGAWK/openapi.json
