Skip to content

Commit

Permalink
Prefer CVE alias over others (#87)
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu authored Jan 31, 2024
1 parent 7722f87 commit df6750e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "appthreat-vulnerability-db"
version = "5.6.0"
version = "5.6.1"
description = "AppThreat's vulnerability database and package search library with a built-in file based storage. OSV, CVE, GitHub, npm are the primary sources of vulnerabilities."
authors = [
{name = "Team AppThreat", email = "[email protected]"},
Expand Down
2 changes: 1 addition & 1 deletion vdb/lib/osv.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def to_vuln(self, cve_data):
# Try to locate the CVE id from the aliases section
if not cve_id.startswith("CVE") and not cve_id.startswith("RUSTSEC"):
for i in aliases:
if not i.startswith("OSV"):
if i.startswith("CVE"):
cve_id = i
break
assigner = "OSV"
Expand Down

0 comments on commit df6750e

Please sign in to comment.