Skip to content

Commit 32127d6

Browse files
committed
Fix incorrect default starting year in NVD importer
The function fetch_cve_data_1_1 used starting_year=2025 by default, but NVD JSON CVE feeds are available starting from 2002. This caused older CVE data (2002–2024) to be skipped when no starting year was provided. This updates the default starting_year to 2002 so all available NVD CVE data is fetched by default, matching documented behavior. Fixes: #2079 Signed-off-by: Aditya Kumar Singh <[email protected]> Signed-off-by: Aditya kumar singh <[email protected]>
1 parent 4402d6e commit 32127d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vulnerabilities/pipelines/v2_importers/nvd_importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def fetch(url, logger=None):
111111
return json.loads(data)
112112

113113

114-
def fetch_cve_data_1_1(starting_year=2025, logger=None):
114+
def fetch_cve_data_1_1(starting_year=2002, logger=None):
115115
"""
116116
Yield tuples of (year, lists of CVE mappings) from the NVD, one for each
117117
year since ``starting_year`` defaulting to 2002.

0 commit comments

Comments
 (0)