From bb932af24dfd580c87fcea3e8e8f2e140c51acee Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Fri, 1 Dec 2023 05:28:45 -0500 Subject: [PATCH] fix: remove virtual match string on NVD API Request (#6177) --- .../dependencycheck/data/update/NvdApiDataSource.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/owasp/dependencycheck/data/update/NvdApiDataSource.java b/core/src/main/java/org/owasp/dependencycheck/data/update/NvdApiDataSource.java index a210f42da29..09603f5210f 100644 --- a/core/src/main/java/org/owasp/dependencycheck/data/update/NvdApiDataSource.java +++ b/core/src/main/java/org/owasp/dependencycheck/data/update/NvdApiDataSource.java @@ -290,10 +290,12 @@ private boolean processApi() throws UpdateException { builder.withDelay(8000); } builder.withResultsPerPage(RESULTS_PER_PAGE); - final String virtualMatch = settings.getString(Settings.KEYS.CVE_CPE_STARTS_WITH_FILTER); - if (virtualMatch != null) { - builder.withVirtualMatchString(virtualMatch); - } + //removed due to the virtualMatch filter causing overhead with the NVD API + //final String virtualMatch = settings.getString(Settings.KEYS.CVE_CPE_STARTS_WITH_FILTER); + //if (virtualMatch != null) { + // builder.withVirtualMatchString(virtualMatch); + //} + final int retryCount = settings.getInt(Settings.KEYS.NVD_API_MAX_RETRY_COUNT, 10); builder.withMaxRetryCount(retryCount); long delay = 0;