# NVD CVE Scraper — Vulnerabilities, CVSS Scores & CWE (`devilscrapes/nvd-cve-vulnerabilities-scraper`) Actor

Search the NIST National Vulnerability Database and export CVE records — CVE ID, description, CVSS score and severity, attack vector, CWE weakness, publication dates and reference links — as clean JSON, CSV or Excel.

- **URL**: https://apify.com/devilscrapes/nvd-cve-vulnerabilities-scraper.md
- **Developed by:** [DevilScrapes](https://apify.com/devilscrapes) (community)
- **Categories:** Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

<div align="center">
  <img src=".actor/icon.svg" width="160" alt="Devil Scrapes mark" />

## NVD CVE Scraper — Vulnerabilities, CVSS Scores & CWE

**💰 $2.20 / 1 000 results**  ·  pay only for results  ·  no credit card to try

*We do the dirty work so your dataset stays clean.* 😈

Search the NIST National Vulnerability Database and export CVE records — CVE ID, description, CVSS score and severity, attack vector, CWE weakness, publication dates and reference links — as clean JSON, CSV or Excel.

</div>

***

### 🎯 What this scrapes

NVD is the authoritative feed every security team watches, and it is free — but it enforces a 5-request-per-30-second limit for unauthenticated clients, buries CVSS behind three different metric schema versions, and returns each CVE with descriptions, weaknesses and references as separate nested arrays. This Actor throttles correctly, picks the newest CVSS version present, and flattens each vulnerability into one row you can sort by severity.

### 🔥 What we handle for you

throttles to NVD's 5-requests-per-30-seconds unauthenticated limit so long runs are not rate-limited
picks the newest CVSS version present per CVE and records which one it used
flattens descriptions, weaknesses and references into one row per vulnerability

### 💡 Use cases

- Monitor new CVEs affecting a product or vendor in your stack.
- Build a severity-ranked backlog for a patch cycle.
- Feed a vulnerability dashboard without paying for a commercial feed.
- Audit historical CVE exposure for a technology before adopting it.

### ⚙️ How to use it

1. Click **Try for free** at the top of the page.
2. Fill in the input form — most fields have sensible defaults.
3. Click **Start**. Output streams into the run's dataset.
4. Export from **Storage → Dataset** as JSON, CSV, or Excel — or fetch via the API.

### 📥 Input

| Field | Type | Required | Default | Notes |
|---|---|:--:|---|---|
| `keyword` | `string` | no | 'wordpress' | Match CVEs whose description mentions this text — a product, vendor or technology. |
| `cpeName` | `string` | no | '—' | Exact CPE 2.3 name to match, e.g. <code>cpe:2.3:a:apache:log4j:2.14.1:*:*:*:*:*:*:\*</code>. More precise than a keyword… |
| `publishedFrom` | `string` | no | '2026-06-01' | Only CVEs published on or after this date, as <code>YYYY-MM-DD</code>. NVD caps a publication window at 120 days, so a… |
| `publishedTo` | `string` | no | '2026-08-01' | End of the publication window, as <code>YYYY-MM-DD</code>. Must be within 120 days of the start date. |
| `minCvssScore` | `integer` | no | 0 | Only CVEs scoring at least this (0-10). Leave at 0 for every severity. CVEs with no published score are kept. |
| `maxResults` | `integer` | no | 100 | Stop after this many CVEs. Each CVE is one billed result row. |
| `proxyConfiguration` | `object` | no | {'useApifyProxy': False} | NVD is a public government API and does not need a proxy. Leave this off unless your account requires egress through… |

#### Example input

```json
{
  "keyword": "wordpress",
  "publishedFrom": "2026-06-01",
  "publishedTo": "2026-08-01",
  "maxResults": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

### 📤 Output

Every row is one dataset item.

| Field | Type | Notes |
|---|---|---|
| `cve_id` | `string` | CVE identifier, e.g. `CVE-2024-1234`. |
| `url` | `string` | NVD detail page for the CVE. |
| `description` | `string` | English CVE description. |
| `vuln_status` | `string` | NVD status, e.g. `Analyzed`, `Modified`. |
| `published` | `string` | Publication timestamp. |
| `last_modified` | `string` | Last modification timestamp. |
| `cvss_version` | `string` | CVSS schema version the score came from. |
| `cvss_score` | `number` | CVSS base score, 0-10. |
| `cvss_severity` | `string` | `LOW`, `MEDIUM`, `HIGH` or `CRITICAL`. |
| `cvss_vector` | `string` | CVSS vector string. |
| `attack_vector` | `string` | Attack vector, e.g. `NETWORK`. |
| `cwe_ids` | `array` | CWE weakness identifiers. |
| `source` | `string` | Reporting source identifier. |
| `reference_urls` | `array` | Reference links published with the CVE. |

#### Example output

```json
{}
```

### 💰 Pricing

Pay-Per-Event — you pay only when these events fire:

| Event | USD | What it is |
|---|---:|---|
| `actor-start` | $0.2 | One-off warm-up charge per run |
| `result` | $0.002 | Per dataset item |

Example: 1 000 results at the rates above ≈ **$2.20**. No subscription, no minimum, no card to start — Apify gives every new account $5 of free credit.

### 🚧 Limitations

- Returns NVD's published record only — no exploit code, patch status or vendor advisories.
- Older CVEs often carry only a CVSS v2 score, and some carry no score at all.

### ❓ FAQ

**Do I need an API key?**

No. The Actor stays inside NVD's unauthenticated rate limit of 5 requests per 30 seconds by throttling between pages.

**Why does the date range need both ends?**

NVD rejects a publication window longer than 120 days, so a start date must be paired with an end date within that span.

**Which CVSS version do I get?**

The newest one NVD publishes for that CVE — v3.1 where available, then v3.0, then v2.0. The <code>cvss\_version</code> column always says which.

### 💬 Your feedback

Spotted a bug, hit a weird edge case, or need a new field? Open an
issue on the Actor's **Issues** tab on Apify Console — we ship
fixes weekly and we read every report.

***

<div align="center">

Built by **[Devil Scrapes](https://apify.com/DevilScrapes)** 😈 — a small fleet of
opinionated public-data Actors. Honest pricing, real engineering, zero fine print.

</div>

# Actor input Schema

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

Match CVEs whose description mentions this text — a product, vendor or technology.

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

Exact CPE 2.3 name to match, e.g. <code>cpe:2.3:a:apache:log4j:2.14.1:*:*:*:*:*:*:\*</code>. More precise than a keyword when you know the product.

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

Only CVEs published on or after this date, as <code>YYYY-MM-DD</code>. NVD caps a publication window at 120 days, so a start date needs an end date too.

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

End of the publication window, as <code>YYYY-MM-DD</code>. Must be within 120 days of the start date.

## `minCvssScore` (type: `integer`):

Only CVEs scoring at least this (0-10). Leave at 0 for every severity. CVEs with no published score are kept.

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

Stop after this many CVEs. Each CVE is one billed result row.

## `proxyConfiguration` (type: `object`):

NVD is a public government API and does not need a proxy. Leave this off unless your account requires egress through Apify Proxy.

## Actor input object example

```json
{
  "keyword": "wordpress",
  "publishedFrom": "2026-06-01",
  "publishedTo": "2026-08-01",
  "minCvssScore": 0,
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

All dataset items as JSON.

## `datasetItemsCsv` (type: `string`):

Same data exported to CSV.

## `datasetView` (type: `string`):

Open the run dataset in the Console.

# 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": "wordpress",
    "publishedFrom": "2026-06-01",
    "publishedTo": "2026-08-01",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devilscrapes/nvd-cve-vulnerabilities-scraper").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": "wordpress",
    "publishedFrom": "2026-06-01",
    "publishedTo": "2026-08-01",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("devilscrapes/nvd-cve-vulnerabilities-scraper").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": "wordpress",
  "publishedFrom": "2026-06-01",
  "publishedTo": "2026-08-01",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call devilscrapes/nvd-cve-vulnerabilities-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/GgzZcr6acVQ2Zne5x/builds/J1TmBgiU15tkq7jie/openapi.json
