diff --git a/src/vulnxscan/osv.py b/src/vulnxscan/osv.py index 4d81a91..7318d18 100755 --- a/src/vulnxscan/osv.py +++ b/src/vulnxscan/osv.py @@ -97,6 +97,9 @@ def query_vulns(self, sbom_path): batchquery = {} batchquery["queries"] = [] for drv in df_sbom.itertuples(): + if not drv.version: + LOG.debug("skipping osv query (unknown version): %s", drv.name) + continue query = {} query["version"] = drv.version query["package"] = {}