feat(cve/nvd): support CVSS v4.0 (#1979)

* feat(cve/nvd): support CVSS v4.0

* fix(ci/build/windows): use libc v1.52.1
This commit is contained in:
MaineK00n
2024-07-04 13:39:16 +09:00
committed by GitHub
parent d8173cdd42
commit a76302c111
5 changed files with 49 additions and 21 deletions

View File

@@ -610,7 +610,7 @@ func (v VulnInfo) Cvss3Scores() (values []CveContentCvss) {
// Cvss40Scores returns CVSS V4 Score
func (v VulnInfo) Cvss40Scores() (values []CveContentCvss) {
for _, ctype := range []CveContentType{Mitre} {
for _, ctype := range []CveContentType{Mitre, Nvd} {
if conts, found := v.CveContents[ctype]; found {
for _, cont := range conts {
if cont.Cvss40Score == 0 && cont.Cvss40Severity == "" {