Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CVSSv4 #45

Merged
merged 4 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
622 changes: 622 additions & 0 deletions cvss/constants4.py

Large diffs are not rendered by default.

649 changes: 649 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
Loading