Skip to content

Commit

Permalink
Add support for CVSSv4
Browse files Browse the repository at this point in the history
-Added class CVSS4
-Based the CVSS4 class on the js implementation found here:
https://github.com/RedHatProductSecurity/cvss-v4-calculator
-Added new tests for CVSS4
-Added new constants and exceptions for CVSS4
-Added json schema for CVSS4
  • Loading branch information
jobiewinserapck committed Dec 10, 2023
1 parent e1530c6 commit c99cbbd
Show file tree
Hide file tree
Showing 12 changed files with 580,706 additions and 1 deletion.
622 changes: 622 additions & 0 deletions cvss/constants4.py

Large diffs are not rendered by default.

643 changes: 643 additions & 0 deletions cvss/cvss4.py

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions cvss/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,27 @@ class CVSS3RHMalformedError(CVSS3Error):
"""

pass


class CVSS4Error(CVSSError):
"""
General CVSS4 exception.
"""

pass


class CVSS4MalformedError(CVSS4Error):
"""
Exception for malformed input CVSS4 vectors.
"""

pass


class CVSS4MandatoryError(CVSS4Error):
"""
Exception for missing mandatory fields.
"""

pass
Loading

0 comments on commit c99cbbd

Please sign in to comment.