diff --git a/lib/workers/repository/init/vulnerability.ts b/lib/workers/repository/init/vulnerability.ts index 7f7dab37d7908d..4b6b801589362d 100644 --- a/lib/workers/repository/init/vulnerability.ts +++ b/lib/workers/repository/init/vulnerability.ts @@ -185,7 +185,10 @@ export async function detectVulnerabilityAlerts( }; let matchCurrentVersion = `< ${val.firstPatchedVersion}`; - if (datasource === MavenDatasource.id) { + if ( + datasource === MavenDatasource.id || + datasource === NugetDatasource.id + ) { matchCurrentVersion = `(,${val.firstPatchedVersion})`; }