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