-
-
Notifications
You must be signed in to change notification settings - Fork 256
Open
Description
vulnerablecode/vulnerabilities/pipelines/v2_importers/nvd_importer.py
Lines 114 to 123 in 4402d6e
| def fetch_cve_data_1_1(starting_year=2025, logger=None): | |
| """ | |
| Yield tuples of (year, lists of CVE mappings) from the NVD, one for each | |
| year since ``starting_year`` defaulting to 2002. | |
| """ | |
| current_year = date.today().year | |
| # NVD json feeds start from 2002. | |
| for year in range(starting_year, current_year + 1): | |
| download_url = f"https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-{year}.json.gz" | |
| yield year, fetch(url=download_url, logger=logger) |
The starting year should be 2002 not 2025.
Metadata
Metadata
Assignees
Labels
No labels