AppThreat / vulnerability-db

Vulnerability database and package search for sources such as Linux, OSV, NVD, GitHub and npm. Powered by sqlite, CVE 5.0, purl, and vers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

search_by_cve and filter hits bug

cerrussell opened this issue · comments

The search_by_cve function uses "*" as the version when it calls vers_compare. However, vers_compare does not check for this condition and will therefore return no results when what is desired is all results.

ETA - This was resolved by @prabhu , however small change is desirable to check for NoneType rather than that the value is None (as that will catch both None and empty string).