Open TG1999 opened 1 year ago
@TG1999 do you mean doing an on-demand import?
@pombredanne we can do something like on-demand import on top of this, we have a search function here https://github.com/nexB/vulnerablecode/blob/0d9c9b536a5c6281b92bf7b816f8904a7c499632/vulnerabilities/models.py#L115 in case if we are not able to find a valid and possible CVE in our DB we should maintain a CVE import queue to import these.
We can do this for GHSAs or more aliases like these for starters.
For example https://public.vulnerablecode.io/vulnerabilities/search?search=CVE-2023-39523
We should check if input is a valid CVE and if it's a valid CVE, we should directly check if the search input is in aliases of the Vulnerability object, if it's not there we should not search anywhere else.