Skip to content

Commit 3573227

Browse files
committed
feat: add CWEs field to VulnerabilityBlob to support weaknesses data from NVD Signed-off-by: Hasnat Bashir <[email protected]>
1 parent fdb331b commit 3573227

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

grype/db/v6/blobs.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ type VulnerabilityBlob struct {
2626

2727
// Severities is a list of severity indications (quantitative or qualitative) for the vulnerability
2828
Severities []Severity `json:"severities,omitempty"`
29+
30+
// CWEs is a list of Common Weakness Enumeration (CWE) identifiers that classify the type of vulnerability
31+
CWEs []string `json:"cwes,omitempty"`
2932
}
3033

3134
func (v VulnerabilityBlob) String() string {

0 commit comments

Comments
 (0)