github.com/khulnasoft-lab/tunnel-db@v0.0.0-20231117205118-74e1113bd007/pkg/vulnsrc/nvd/types.go (about) 1 package nvd 2 3 type NVD struct { 4 CVEItems []Item `json:"CVE_Items"` 5 } 6 7 type Item struct { 8 Cve Cve 9 Impact Impact 10 LastModifiedDate string `json:"lastModifiedDate"` 11 PublishedDate string `json:"publishedDate"` 12 } 13 14 type Cve struct { 15 Meta Meta `json:"CVE_data_meta"` 16 References References 17 Description Description 18 ProblemType ProblemType 19 } 20 21 type Meta struct { 22 ID string 23 } 24 25 type Impact struct { 26 BaseMetricV2 BaseMetricV2 27 BaseMetricV3 BaseMetricV3 28 } 29 30 type BaseMetricV2 struct { 31 CvssV2 CvssV2 32 Severity string 33 } 34 35 type CvssV2 struct { 36 BaseScore float64 `json:"baseScore"` 37 VectorString string `json:"vectorString"` 38 } 39 40 type BaseMetricV3 struct { 41 CvssV3 CvssV3 42 } 43 44 type CvssV3 struct { 45 BaseScore float64 `json:"baseScore"` 46 BaseSeverity string 47 VectorString string `json:"vectorString"` 48 } 49 50 type References struct { 51 ReferenceDataList []ReferenceData `json:"reference_data"` 52 } 53 type ReferenceData struct { 54 Name string 55 Refsource string 56 URL string 57 } 58 59 type Description struct { 60 DescriptionDataList []DescriptionData `json:"description_data"` 61 } 62 63 type DescriptionData struct { 64 Lang string 65 Value string 66 } 67 68 type ProblemType struct { 69 ProblemTypeData []ProblemTypeData `json:"problemtype_data"` 70 } 71 72 type ProblemTypeData struct { 73 Description []ProblemTypeDataDescription 74 } 75 76 type ProblemTypeDataDescription struct { 77 Lang string 78 Value string 79 }