# CVE Scraper (`rl1987/cve-scraper`) Actor

CVE.org vulnerability info scraper

- **URL**: https://apify.com/rl1987/cve-scraper.md
- **Developed by:** [R.L.](https://apify.com/rl1987) (community)
- **Categories:** Developer tools, Other, Automation
- **Stats:** 5 total users, 0 monthly users, 96.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 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?

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

### CVE Scraper

Apify Actor that scrapes vulnerability records from [cve.org](https://www.cve.org) for a given
search query. Built on Scrapy, talks directly to CVE.org's search API (no HTML parsing), and
paginates through all matching results (up to 10k per query, the API's own ceiling).

#### How it works

The Actor takes a `cve.org` search-results URL, pulls the `query` parameter out of it, and
replays that query against `https://www.cve.org/restapiv1/search` in pages of 100, following
pagination until `resultsTotal` is exhausted. Each result is flattened into one output row —
see field list below.

#### Input

```json
{
    "startUrls": [
        {
            "url": "https://www.cve.org/CVERecord/SearchResults?query=scrapy",
            "method": "GET"
        }
    ]
}
```

`startUrls` — one or more `cve.org` search-results URLs (as produced by the site's own search
box). Only the `query` query-string parameter is used; the rest of the URL is ignored. A
`startUrls` entry without a `query` parameter is skipped.

#### Output row example

```json
{
  "cve_id": "CVE-2024-3574",
  "url": "https://www.cve.org/CVERecord?id=CVE-2024-3574",
  "date_published": "2024-04-16T00:00:15.109Z",
  "date_reserved": "2024-04-10T09:54:50.274Z",
  "date_updated": "2024-08-01T20:12:08.239Z",
  "cur_state": "PUBLISHED",
  "title": "Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapy",
  "description": "In scrapy version 2.10.1, an issue was identified where the Authorization header, containing credentials for server authentication, is leaked to a third-party site during a cross-domain redirect. This vulnerability arises from the failure to remove the Authorization header when redirecting across domains. The exposure of the Authorization header to unauthorized actors could potentially allow for account hijacking.",
  "vendor": "scrapy",
  "product": "scrapy/scrapy",
  "versions_affected": [
    "unspecified"
  ],
  "attack_complexity": null,
  "attack_vector": null,
  "availability_impact": null,
  "cvss_base_score": null,
  "base_severity": null,
  "confidentiality_impact": null,
  "integrity_impact": null,
  "privs_required": null,
  "user_interaction": null,
  "vector_string": null,
  "advisory": "49974321-2718-43e3-a152-62b16eed72a9",
  "ref_urls": [
    "https://huntr.com/bounties/49974321-2718-43e3-a152-62b16eed72a9",
    "https://github.com/scrapy/scrapy/commit/5bcb8fd5019c72d05c4a96da78a7fcb6ecb55b75"
  ],
  "ref_ids": []
}
```

| Field | Description |
|---|---|
| `cve_id` | CVE identifier, e.g. `CVE-2024-3574` |
| `url` | Link to the record on cve.org |
| `date_published` / `date_reserved` / `date_updated` | Lifecycle timestamps |
| `cur_state` | `PUBLISHED`, `RESERVED`, etc. |
| `title` | Vulnerability title (may be `null` for older/reserved records) |
| `description` | English-language description, if present |
| `vendor` / `product` | Affected vendor and product (last affected entry wins if there are several) |
| `versions_affected` | Affected version strings |
| `attack_complexity`, `attack_vector`, `availability_impact`, `cvss_base_score`, `base_severity`, `confidentiality_impact`, `integrity_impact`, `privs_required`, `user_interaction`, `vector_string` | CVSS v4.0 metrics, only populated when the record ships a `cvssV4_0` metric |
| `advisory` | Advisory ID from the CNA source |
| `ref_urls` / `ref_ids` | Reference links and their short IDs |

Fields not present on a given record come back as `null` or `[]` — CVE.org's schema varies a
lot by CNA and by record age, this is expected, not a bug.

#### Stability notes

- Retries up to 5 times on `429`/`5xx`/timeouts, with AutoThrottle backing off under rate
  limiting.
- Malformed or partial entries (missing `_source`, bad `resultsTotal`, non-JSON response) are
  logged and skipped rather than crashing the run.
- Default run memory is 1024 MB (typical peak usage is well under that); timeout 1 hour.

#### Local development

```bash
pip install -r requirements.txt
apify run --purge
```

Requires an `apify` CLI login and Docker for `apify push` / image builds. Source lives under
`src/`, spider logic in `src/spiders/cve.py`.

### Cyber recon toolkit

Part of the **Cyber recon toolkit** — OSINT, attack-surface recon, and vulnerability-intel data collection for security research:

- [Bugcrowd Scraper](https://apify.com/rl1987/bugcrowd-scraper) — Scrapes public Bugcrowd data: disclosed submissions, program directory, leaderboard.
- [HackerOne Scraper](https://apify.com/rl1987/hackerone-scraper) — Scrapes public HackerOne data: Hacktivity disclosed reports, program directory, researcher leaderboard.
- [Intigriti Scraper](https://apify.com/rl1987/intigriti-scraper) — Scrapes public Intigriti data: bug bounty/VDP program directory, researcher leaderboard and profiles.
- [TLSX - TLS Data Gathering and Analysis](https://apify.com/rl1987/pd-tlsx) — Fast, configurable TLS grabber for TLS-based data collection and analysis.
- [BGP.HE.NET Recon Scraper](https://apify.com/rl1987/bgphenet-scraper) — Scrapes ASN, prefix, IP, and DNS recon data from bgp.he.net.
- [gau - Get All URLs](https://apify.com/rl1987/gau-wrapper) — Fetch known URLs from Wayback Machine, Common Crawl, AlienVault OTX, and URLScan.
- [Git Email Extractor](https://apify.com/rl1987/git-email-extractor) — Shallow-clones git repos and extracts contributor emails from commit history.
- [Wappalyzer Technology Lookup](https://apify.com/rl1987/wappalyzer-tech-lookup) — Detect the technology stack behind any website using Wappalyzer.
- [Meta Tags Scraper](https://apify.com/rl1987/meta-tags-scraper) — Web page metadata scraper (meta tags, Open Graph, Twitter Card).
- [Universal Contact Extractor](https://apify.com/rl1987/universal-contact-extractor) — Extract phone numbers, emails and social media URLs from web pages.
- [Web Text Extractor](https://apify.com/rl1987/web-text-extractor) — Extract clean text or Markdown content from web pages.

### Did you find this useful?

⭐ Rate this actor on Apify! Your feedback helps other users find it and helps us keep improving it.

# Actor input Schema

## `startUrls` (type: `array`):

URLs to start with

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.cve.org/CVERecord/SearchResults?query=scrapy"
    }
  ]
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.cve.org/CVERecord/SearchResults?query=scrapy"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/cve-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 = { "startUrls": [{ "url": "https://www.cve.org/CVERecord/SearchResults?query=scrapy" }] }

# Run the Actor and wait for it to finish
run = client.actor("rl1987/cve-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 '{
  "startUrls": [
    {
      "url": "https://www.cve.org/CVERecord/SearchResults?query=scrapy"
    }
  ]
}' |
apify call rl1987/cve-scraper --silent --output-dataset

```

## MCP server setup

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