-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
NIST has a couple of APIs that can be use to fetch CVE information for a product, and then information from the CVE.
The CPE (product) API is described https://csrc.nist.gov/CSRC/media/Projects/National-Vulnerability-Database/documents/web%20service%20documentation/Automation%20Support%20for%20CPE%20Retrieval.pdf
An example request would be:
- https://services.nvd.nist.gov/rest/json/cpes/1.0?cpeMatchString=cpe:2.3:a:mariadb:mariadb:10.4.9&addOns=cves
- https://services.nvd.nist.gov/rest/json/cpes/1.0?cpeMatchString=cpe:2.3:a:oracle:mysql:8.0.22&addOns=cves
These should be easy enough to match to a product.
CVE rest lookup example:
https://services.nvd.nist.gov/rest/json/cve/1.0/CVE-2021-2056
With this information:
- is doing an online lookup acceptable?
- do you want to use this to populate the vulnerabilities.csv? (or could this interface be deprecated)
- what would you like the report format to look like?
Which perl modules for web fetching and JSON are acceptable to add as a dependency (can make them optional of course)?