Skip to contentSkip to conversation

cve-update-nvd2: ignore rejected CVEs

RFC PATCH New [email protected] 1 participant 1 message Feb 12, 2024

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 cve-update-nvd2: ignore rejected CVEs

From: Ross Burton <[email protected]>

We shouldn't consider CVEs which have been marked as rejected or disputed by either NIST or the upstream project.

---
 meta/recipes-core/meta/cve-update-nvd2-native.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/meta/cve-update-nvd2-native.bb +2 -1
index bfe48b27e79..719b2f639a1 100644
@@ -170,7 +170,8 @@ def update_db_file(db_tmp_file, d, database_time):
     conn = sqlite3.connect(db_tmp_file)
     initialize_db(conn)
 
-    req_args = {'startIndex' : 0}
+    req_args = {'startIndex' : 0,
+                'noRejected': ''}
 
     # The maximum range for time is 120 days
     # Force a complete update if our range is longer
Signature · 1 line
2.34.1