MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / fixed_package_details

Method fixed_package_details

vulnerabilities/models.py:1075–1089  ·  view source on GitHub ↗

Return a mapping of vulnerabilities that affect this package and the next and latest non-vulnerable versions.

(self)

Source from the content-addressed store, hash-verified

1073
1074 @property
1075 def fixed_package_details(self):
1076 """
1077 Return a mapping of vulnerabilities that affect this package and the next and
1078 latest non-vulnerable versions.
1079 """
1080 package_details = {}
1081 package_details["purl"] = PackageURL.from_string(self.purl)
1082
1083 next_non_vulnerable, latest_non_vulnerable = self.get_non_vulnerable_versions()
1084 package_details["next_non_vulnerable"] = next_non_vulnerable
1085 package_details["latest_non_vulnerable"] = latest_non_vulnerable
1086
1087 package_details["vulnerabilities"] = self.get_affecting_vulnerabilities()
1088
1089 return package_details
1090
1091 def get_affecting_vulnerabilities(self):
1092 """

Callers

nothing calls this directly

Tested by

no test coverage detected