From 69515136877164bc62d64c3928e14c2d659dbd8e Mon Sep 17 00:00:00 2001 From: Shenoy Date: Mon, 22 Jan 2024 10:58:21 +0530 Subject: [PATCH] Fix wrong versions error in GithubDataSource Signed-off-by: Shenoy --- vulntotal/datasources/github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vulntotal/datasources/github.py b/vulntotal/datasources/github.py index 3311665c4..ab31aa71e 100644 --- a/vulntotal/datasources/github.py +++ b/vulntotal/datasources/github.py @@ -68,8 +68,8 @@ def datasource_advisory_from_cve(self, cve: str) -> Iterable[VendorData]: yield VendorData( purl=purl, aliases=sorted(list(set(advisory.get("identifiers", None)))), - affected_versions=sorted(list(set(advisory.get("firstPatchedVersion", None)))), - fixed_versions=sorted(list(set(advisory.get("vulnerableVersionRange", None)))), + affected_versions=sorted(list(set(advisory.get("vulnerableVersionRange", None)))), + fixed_versions=sorted(list(set(advisory.get("firstPatchedVersion", None)))), ) @classmethod