cvss

package
v0.0.0-...-48fc2b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CVSS

type CVSS interface {
	Severity() CvssRisk
}

This is the API. Everything else should be hidden within the package

func NewCvssBaseString

func NewCvssBaseString(raw string, version CvssVersion) (CVSS, error)

Factory

type CvssRisk

type CvssRisk string
const (
	// Introduced in v3
	CRITICAL CvssRisk = "CRITICAL"

	// Present in both v3 and v2
	HIGH   CvssRisk = "HIGH"
	MEDIUM CvssRisk = "MEDIUM"
	LOW    CvssRisk = "LOW"
	NONE   CvssRisk = "NONE"
)

Qualitative Severity Ratings https://nvd.nist.gov/vuln-metrics/cvss

type CvssVersion

type CvssVersion string
const (
	CVSS_V2 CvssVersion = "CVSS_V2"
	CVSS_V3 CvssVersion = "CVSS_V3"
	CVSS_V4 CvssVersion = "CVSS_V4"
)

As per OSV schema https://ossf.github.io/osv-schema/#severitytype-field

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL