Skip to content

Commit

Permalink
baseSeverity location fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vehemont committed Dec 19, 2022
1 parent 11d8cdb commit 866c453
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -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)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion nvdlib/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 866c453

Please sign in to comment.