diff --git a/HISTORY.md b/HISTORY.md index 6e977a7..bff34fd 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,12 @@ Release History =============== +0.7.1 (2022-12-19) +------------------- +**Bugfixes** + +- Fixed the location of `baseSeverity`. The `baseSeverity` attribute had its location changed and caused lookups with a CVSS version 2 score to fail. + 0.7.0 (2022-10-31) ------------------- diff --git a/nvdlib/classes.py b/nvdlib/classes.py index 5ab08f1..7057366 100644 --- a/nvdlib/classes.py +++ b/nvdlib/classes.py @@ -178,7 +178,7 @@ def getvars(self): if hasattr(self.metrics, 'cvssMetricV2'): self.v2score = self.metrics.cvssMetricV2[0].cvssData.baseScore self.v2vector = self.metrics.cvssMetricV2[0].cvssData.vectorString - self.v2severity = self.metrics.cvssMetricV2[0].cvssData.baseSeverity + self.v2severity = self.metrics.cvssMetricV2[0].baseSeverity self.v2exploitability = self.metrics.cvssMetricV2[0].exploitabilityScore self.v2impactScore = self.metrics.cvssMetricV2[0].impactScore diff --git a/setup.py b/setup.py index 9268ced..7893c0d 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='nvdlib', packages=find_packages(include=['nvdlib']), - version='0.7.0', + version='0.7.1', install_requires = ['requests'], extras_require={ "dev": [