> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# NIST National Vulnerability Database (NVD)

> CVE records enriched by NIST with CVSS scores, CWE weaknesses, CPE applicability and KEV dates, their change history, and the CPE product dictionary.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/nvd.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=bb51ceda798e35879bd78bd05df845f7)

[Web Catalog · Security](https://docs.webrouter.net/data-apis.md?category=security)

Key optional

Endpoints

3

Auth

Key in header

[Vendor docs](https://nvd.nist.gov/developers/start-here)

## Setup

| Variable | | What it is |
| - | - | - |
| `NVD_API_KEY` | some calls | Optional NVD API key (nvd.nist.gov/developers/request-an-api-key), sent in the apiKey header; it raises the rate limit tenfold. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Rate limit per rolling 30 seconds: 5 requests without a key, 50 with one; NIST still asks for a pause of a few seconds between requests. Excess requests are blocked by the firewall.
* Any date range (published, modified, KEV, change) must have both ends and span at most 120 consecutive days.
* Paging is offset-based: read totalResults and repeat with startIndex advanced by resultsPerPage.
* Value-less flags (hasKev, noRejected, keywordExactMatch, isVulnerable and similar) are documented as bare query keys and are not in these entries.
* NIST asks applications to show: 'This product uses data from the NVD API but is not endorsed or certified by the NVD.'

## Endpoints

GET

Search CVEs

CVE records with NVD's CVSS, CWE, CPE configurations, references and KEV fields, filtered by ID, keyword, product, severity or date.

[Open](#nvd-cves-search)

GET

Get CVE change history

Change events (analysis, modification, rejection, KEV updates) for CVEs, with what was added, changed or removed.

[Open](#nvd-cves-history)

GET

Search the CPE product dictionary

CPE names and titles from the Official CPE Dictionary, to find the cpeName a CVE search needs.

[Open](#nvd-cpes-search)

### Search CVEs

GET

`/cves/2.0`

`nvd.cves.search`

CVE records with NVD's CVSS, CWE, CPE configurations, references and KEV fields, filtered by ID, keyword, product, severity or date.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`cveIds`</td><td>string</td><td>query</td><td>Comma-separated CVE IDs, up to 100. Example `CVE-2021-44228`</td></tr>
    <tr><td>`keywordSearch`</td><td>string</td><td>query</td><td>Words that must all appear in the current description (prefix match on each word). Example `Microsoft Outlook`</td></tr>
    <tr><td>`cpeName`</td><td>string</td><td>query</td><td>A CPE 2.3 name; part, vendor, product and version must not be '\*'. Returns the CVEs whose applicability matches it. Example `cpe:2.3:o:microsoft:windows_10:1607:*:*:*:*:*:*:*`</td></tr>

    <tr>
      <td>
        `virtualMatchString`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A CPE match string, broader than cpeName; ignored when cpeName is also sent.
      </td>
    </tr>

    <tr>
      <td>
        `versionStart`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Start of a version range; needs versionStartType and virtualMatchString.
      </td>
    </tr>

    <tr><td>`versionStartType`</td><td>string</td><td>query</td><td>Whether versionStart is included. One of `including`, `excluding`</td></tr>

    <tr>
      <td>
        `versionEnd`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End of a version range; needs versionEndType and virtualMatchString.
      </td>
    </tr>

    <tr><td>`versionEndType`</td><td>string</td><td>query</td><td>Whether versionEnd is included. One of `including`, `excluding`</td></tr>
    <tr><td>`cveTag`</td><td>string</td><td>query</td><td>Only records carrying this CVE tag. One of `disputed`, `unsupported-when-assigned`, `exclusively-hosted-service`</td></tr>
    <tr><td>`cvssV3Severity`</td><td>string</td><td>query</td><td>CVSS v3 qualitative severity. Not combinable with the v2 or v4 severity. One of `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`</td></tr>
    <tr><td>`cvssV4Severity`</td><td>string</td><td>query</td><td>CVSS v4 qualitative severity. Not combinable with the v2 or v3 severity. One of `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`</td></tr>
    <tr><td>`cvssV2Severity`</td><td>string</td><td>query</td><td>CVSS v2 severity; NVD stopped scoring v2 in July 2022. One of `LOW`, `MEDIUM`, `HIGH`</td></tr>
    <tr><td>`cvssV3Metrics`</td><td>string</td><td>query</td><td>Full or partial CVSS v3 vector string. Example `AV:N/AC:L`</td></tr>

    <tr>
      <td>
        `cvssV4Metrics`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Full or partial CVSS v4 vector string.
      </td>
    </tr>

    <tr><td>`cweId`</td><td>string</td><td>query</td><td>Weakness ID; NVD-CWE-Other and NVD-CWE-noinfo also work. Example `CWE-287`</td></tr>
    <tr><td>`sourceIdentifier`</td><td>string</td><td>query</td><td>Only CVEs from this data source. Example `cve@mitre.org`</td></tr>

    <tr>
      <td>
        `pubStartDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Published from; needs pubEndDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr>
      <td>
        `pubEndDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Published until; needs pubStartDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr>
      <td>
        `lastModStartDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Last modified from; needs lastModEndDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr>
      <td>
        `lastModEndDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Last modified until; needs lastModStartDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr>
      <td>
        `kevStartDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Added to CISA KEV from; needs kevEndDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr>
      <td>
        `kevEndDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Added to CISA KEV until; needs kevStartDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr>
      <td>
        `resultsPerPage`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records per response; default and maximum 2,000.
      </td>
    </tr>

    <tr>
      <td>
        `startIndex`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Zero-based index of the first record; add resultsPerPage until totalResults is reached.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://nvd.nist.gov/developers/vulnerabilities) · Same job: [ENISA EU Vulnerability Database (EUVD)](https://docs.webrouter.net/data-apis/enisa-euvd.md#enisa-euvd-vulns-search), [OSV.dev](https://docs.webrouter.net/data-apis/osv.md#osv-query)

```python Python theme={null}
router.call_data_api("nvd.cves.search", {'cveIds': 'CVE-2021-44228', 'keywordSearch': 'Microsoft Outlook', 'cpeName': 'cpe:2.3:o:microsoft:windows_10:1607:*:*:*:*:*:*:*', 'cvssV3Metrics': 'AV:N/AC:L', 'cweId': 'CWE-287', 'sourceIdentifier': 'cve@mitre.org'})
```

```text MCP theme={null}
call_data_api(endpoint="nvd.cves.search", params={"cveIds": "CVE-2021-44228", "keywordSearch": "Microsoft Outlook", "cpeName": "cpe:2.3:o:microsoft:windows_10:1607:*:*:*:*:*:*:*", "cvssV3Metrics": "AV:N/AC:L", "cweId": "CWE-287", "sourceIdentifier": "cve@mitre.org"})
```

> [!NOTE]
>
> * Leave every filter out to page through the whole database, sorted by published date.
> * A 200 with no results can mean the filter matched nothing, not an error; a 4xx usually means a filter value or combination NVD rejects.

### Get CVE change history

GET

`/cvehistory/2.0`

`nvd.cves.history`

Change events (analysis, modification, rejection, KEV updates) for CVEs, with what was added, changed or removed.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`cveIds`</td><td>string</td><td>query</td><td>Comma-separated CVE IDs, up to 100. Example `CVE-2019-1010218`</td></tr>

    <tr>
      <td>
        `changeStartDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Changed from; needs changeEndDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr>
      <td>
        `changeEndDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Changed until; needs changeStartDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr><td>`eventName`</td><td>string</td><td>query</td><td>One change event type. One of `CVE Received`, `Initial Analysis`, `Reanalysis`, `CVE Modified`, `Modified Analysis`, `CVE Translated`, `Vendor Comment`, `CVE Source Update`, `CPE Deprecation Remap`, `CWE Remap`, `Reference Tag Update`, `CVE Rejected`, `CVE Unrejected`, `CVE CISA KEV Update`, `Data Remediation`, `CVE Status Change`</td></tr>

    <tr>
      <td>
        `resultsPerPage`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Events per response; default and maximum 5,000.
      </td>
    </tr>

    <tr>
      <td>
        `startIndex`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Zero-based index of the first event.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://nvd.nist.gov/developers/vulnerabilities)

```python Python theme={null}
router.call_data_api("nvd.cves.history", {'cveIds': 'CVE-2019-1010218'})
```

```text MCP theme={null}
call_data_api(endpoint="nvd.cves.history", params={"cveIds": "CVE-2019-1010218"})
```

### Search the CPE product dictionary

GET

`/cpes/2.0`

`nvd.cpes.search`

CPE names and titles from the Official CPE Dictionary, to find the cpeName a CVE search needs.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`keywordSearch`</td><td>string</td><td>query</td><td>Words that must all appear in the CPE title or reference links. Example `Red Hat`</td></tr>
    <tr><td>`cpeMatchString`</td><td>string</td><td>query</td><td>A CPE match string; returns every dictionary name it matches. Example `cpe:2.3:o:microsoft:windows_10`</td></tr>

    <tr>
      <td>
        `cpeNameId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        One CPE record by UUID.
      </td>
    </tr>

    <tr>
      <td>
        `matchCriteriaId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        CPE names for a match-criteria UUID, as found in a CVE's configurations.
      </td>
    </tr>

    <tr>
      <td>
        `lastModStartDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Modified from; needs lastModEndDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr>
      <td>
        `lastModEndDate`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Modified until; needs lastModStartDate. Extended ISO-8601, e.g. 2024-01-01T00:00:00.000Z; give a '+' offset as is, since the call encodes it.
      </td>
    </tr>

    <tr>
      <td>
        `resultsPerPage`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records per response; default and maximum 10,000.
      </td>
    </tr>

    <tr>
      <td>
        `startIndex`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Zero-based index of the first record.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://nvd.nist.gov/developers/products)

```python Python theme={null}
router.call_data_api("nvd.cpes.search", {'keywordSearch': 'Red Hat', 'cpeMatchString': 'cpe:2.3:o:microsoft:windows_10'})
```

```text MCP theme={null}
call_data_api(endpoint="nvd.cpes.search", params={"keywordSearch": "Red Hat", "cpeMatchString": "cpe:2.3:o:microsoft:windows_10"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.