@ulisesgascon/openjs-cna-tools 0.0.0-stage → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +312 -2
- package/bin/openjs-cna.js +128 -0
- package/components/config.js +92 -0
- package/components/convert.js +81 -0
- package/components/get.js +35 -0
- package/components/health.js +30 -0
- package/components/list.js +36 -0
- package/components/llm-review-prompt.js +84 -0
- package/components/preview.js +42 -0
- package/components/publish.js +238 -0
- package/components/reserve.js +48 -0
- package/components/review.js +170 -0
- package/components/update.js +104 -0
- package/lib/auth.js +20 -0
- package/lib/batch.js +141 -0
- package/lib/cli.js +81 -0
- package/lib/client.js +244 -0
- package/lib/component-utils.js +74 -0
- package/lib/config.js +121 -0
- package/lib/convert/ghsa.js +450 -0
- package/lib/convert/version-range.js +251 -0
- package/lib/cvss.js +113 -0
- package/lib/errors.js +44 -0
- package/lib/index.js +9 -0
- package/lib/preview.js +145 -0
- package/lib/prompt.js +170 -0
- package/lib/record.js +123 -0
- package/lib/review/index.js +78 -0
- package/lib/review/rules.js +433 -0
- package/lib/review/schema.js +99 -0
- package/lib/review/schemas/cve-record-format.json +1362 -0
- package/lib/review/schemas/imports/cvss/cvss-v2.0.json +195 -0
- package/lib/review/schemas/imports/cvss/cvss-v3.0.json +577 -0
- package/lib/review/schemas/imports/cvss/cvss-v3.1.json +577 -0
- package/lib/review/schemas/imports/cvss/cvss-v4.0.json +784 -0
- package/lib/review/schemas/tags/adp-tags.json +7 -0
- package/lib/review/schemas/tags/cna-tags.json +7 -0
- package/lib/review/schemas/tags/reference-tags.json +27 -0
- package/package.json +55 -4
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
{
|
|
2
|
+
"license": [
|
|
3
|
+
"Copyright (c) 2017, FIRST.ORG, INC.",
|
|
4
|
+
"All rights reserved.",
|
|
5
|
+
"",
|
|
6
|
+
"Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ",
|
|
7
|
+
"following conditions are met:",
|
|
8
|
+
"1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following ",
|
|
9
|
+
" disclaimer.",
|
|
10
|
+
"2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the ",
|
|
11
|
+
" following disclaimer in the documentation and/or other materials provided with the distribution.",
|
|
12
|
+
"3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote ",
|
|
13
|
+
" products derived from this software without specific prior written permission.",
|
|
14
|
+
"",
|
|
15
|
+
"THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, ",
|
|
16
|
+
"INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ",
|
|
17
|
+
"DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ",
|
|
18
|
+
"SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ",
|
|
19
|
+
"SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ",
|
|
20
|
+
"WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ",
|
|
21
|
+
"OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
|
22
|
+
],
|
|
23
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
24
|
+
"title": "JSON Schema for Common Vulnerability Scoring System version 3.0",
|
|
25
|
+
"type": "object",
|
|
26
|
+
"definitions": {
|
|
27
|
+
"attackVectorType": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"NETWORK",
|
|
31
|
+
"ADJACENT_NETWORK",
|
|
32
|
+
"LOCAL",
|
|
33
|
+
"PHYSICAL"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"modifiedAttackVectorType": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"NETWORK",
|
|
40
|
+
"ADJACENT_NETWORK",
|
|
41
|
+
"LOCAL",
|
|
42
|
+
"PHYSICAL",
|
|
43
|
+
"NOT_DEFINED"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"attackComplexityType": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"HIGH",
|
|
50
|
+
"LOW"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"modifiedAttackComplexityType": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"enum": [
|
|
56
|
+
"HIGH",
|
|
57
|
+
"LOW",
|
|
58
|
+
"NOT_DEFINED"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"privilegesRequiredType": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"HIGH",
|
|
65
|
+
"LOW",
|
|
66
|
+
"NONE"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"modifiedPrivilegesRequiredType": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": [
|
|
72
|
+
"HIGH",
|
|
73
|
+
"LOW",
|
|
74
|
+
"NONE",
|
|
75
|
+
"NOT_DEFINED"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"userInteractionType": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": [
|
|
81
|
+
"NONE",
|
|
82
|
+
"REQUIRED"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"modifiedUserInteractionType": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": [
|
|
88
|
+
"NONE",
|
|
89
|
+
"REQUIRED",
|
|
90
|
+
"NOT_DEFINED"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"scopeType": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"UNCHANGED",
|
|
97
|
+
"CHANGED"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"modifiedScopeType": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"enum": [
|
|
103
|
+
"UNCHANGED",
|
|
104
|
+
"CHANGED",
|
|
105
|
+
"NOT_DEFINED"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"ciaType": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"enum": [
|
|
111
|
+
"NONE",
|
|
112
|
+
"LOW",
|
|
113
|
+
"HIGH"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"modifiedCiaType": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"enum": [
|
|
119
|
+
"NONE",
|
|
120
|
+
"LOW",
|
|
121
|
+
"HIGH",
|
|
122
|
+
"NOT_DEFINED"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"exploitCodeMaturityType": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"enum": [
|
|
128
|
+
"UNPROVEN",
|
|
129
|
+
"PROOF_OF_CONCEPT",
|
|
130
|
+
"FUNCTIONAL",
|
|
131
|
+
"HIGH",
|
|
132
|
+
"NOT_DEFINED"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"remediationLevelType": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"enum": [
|
|
138
|
+
"OFFICIAL_FIX",
|
|
139
|
+
"TEMPORARY_FIX",
|
|
140
|
+
"WORKAROUND",
|
|
141
|
+
"UNAVAILABLE",
|
|
142
|
+
"NOT_DEFINED"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"confidenceType": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"enum": [
|
|
148
|
+
"UNKNOWN",
|
|
149
|
+
"REASONABLE",
|
|
150
|
+
"CONFIRMED",
|
|
151
|
+
"NOT_DEFINED"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"ciaRequirementType": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"enum": [
|
|
157
|
+
"LOW",
|
|
158
|
+
"MEDIUM",
|
|
159
|
+
"HIGH",
|
|
160
|
+
"NOT_DEFINED"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"scoreType": {
|
|
164
|
+
"type": "number",
|
|
165
|
+
"enum": [
|
|
166
|
+
0,
|
|
167
|
+
0.1,
|
|
168
|
+
0.2,
|
|
169
|
+
0.3,
|
|
170
|
+
0.4,
|
|
171
|
+
0.5,
|
|
172
|
+
0.6,
|
|
173
|
+
0.7,
|
|
174
|
+
0.8,
|
|
175
|
+
0.9,
|
|
176
|
+
1,
|
|
177
|
+
1.1,
|
|
178
|
+
1.2,
|
|
179
|
+
1.3,
|
|
180
|
+
1.4,
|
|
181
|
+
1.5,
|
|
182
|
+
1.6,
|
|
183
|
+
1.7,
|
|
184
|
+
1.8,
|
|
185
|
+
1.9,
|
|
186
|
+
2,
|
|
187
|
+
2.1,
|
|
188
|
+
2.2,
|
|
189
|
+
2.3,
|
|
190
|
+
2.4,
|
|
191
|
+
2.5,
|
|
192
|
+
2.6,
|
|
193
|
+
2.7,
|
|
194
|
+
2.8,
|
|
195
|
+
2.9,
|
|
196
|
+
3,
|
|
197
|
+
3.1,
|
|
198
|
+
3.2,
|
|
199
|
+
3.3,
|
|
200
|
+
3.4,
|
|
201
|
+
3.5,
|
|
202
|
+
3.6,
|
|
203
|
+
3.7,
|
|
204
|
+
3.8,
|
|
205
|
+
3.9,
|
|
206
|
+
4,
|
|
207
|
+
4.1,
|
|
208
|
+
4.2,
|
|
209
|
+
4.3,
|
|
210
|
+
4.4,
|
|
211
|
+
4.5,
|
|
212
|
+
4.6,
|
|
213
|
+
4.7,
|
|
214
|
+
4.8,
|
|
215
|
+
4.9,
|
|
216
|
+
5,
|
|
217
|
+
5.1,
|
|
218
|
+
5.2,
|
|
219
|
+
5.3,
|
|
220
|
+
5.4,
|
|
221
|
+
5.5,
|
|
222
|
+
5.6,
|
|
223
|
+
5.7,
|
|
224
|
+
5.8,
|
|
225
|
+
5.9,
|
|
226
|
+
6,
|
|
227
|
+
6.1,
|
|
228
|
+
6.2,
|
|
229
|
+
6.3,
|
|
230
|
+
6.4,
|
|
231
|
+
6.5,
|
|
232
|
+
6.6,
|
|
233
|
+
6.7,
|
|
234
|
+
6.8,
|
|
235
|
+
6.9,
|
|
236
|
+
7,
|
|
237
|
+
7.1,
|
|
238
|
+
7.2,
|
|
239
|
+
7.3,
|
|
240
|
+
7.4,
|
|
241
|
+
7.5,
|
|
242
|
+
7.6,
|
|
243
|
+
7.7,
|
|
244
|
+
7.8,
|
|
245
|
+
7.9,
|
|
246
|
+
8,
|
|
247
|
+
8.1,
|
|
248
|
+
8.2,
|
|
249
|
+
8.3,
|
|
250
|
+
8.4,
|
|
251
|
+
8.5,
|
|
252
|
+
8.6,
|
|
253
|
+
8.7,
|
|
254
|
+
8.8,
|
|
255
|
+
8.9,
|
|
256
|
+
9,
|
|
257
|
+
9.1,
|
|
258
|
+
9.2,
|
|
259
|
+
9.3,
|
|
260
|
+
9.4,
|
|
261
|
+
9.5,
|
|
262
|
+
9.6,
|
|
263
|
+
9.7,
|
|
264
|
+
9.8,
|
|
265
|
+
9.9,
|
|
266
|
+
10
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
"noneScoreType": {
|
|
270
|
+
"type": "number",
|
|
271
|
+
"minimum": 0,
|
|
272
|
+
"maximum": 0
|
|
273
|
+
},
|
|
274
|
+
"lowScoreType": {
|
|
275
|
+
"type": "number",
|
|
276
|
+
"enum": [
|
|
277
|
+
0.1,
|
|
278
|
+
0.2,
|
|
279
|
+
0.3,
|
|
280
|
+
0.4,
|
|
281
|
+
0.5,
|
|
282
|
+
0.6,
|
|
283
|
+
0.7,
|
|
284
|
+
0.8,
|
|
285
|
+
0.9,
|
|
286
|
+
1,
|
|
287
|
+
1.1,
|
|
288
|
+
1.2,
|
|
289
|
+
1.3,
|
|
290
|
+
1.4,
|
|
291
|
+
1.5,
|
|
292
|
+
1.6,
|
|
293
|
+
1.7,
|
|
294
|
+
1.8,
|
|
295
|
+
1.9,
|
|
296
|
+
2,
|
|
297
|
+
2.1,
|
|
298
|
+
2.2,
|
|
299
|
+
2.3,
|
|
300
|
+
2.4,
|
|
301
|
+
2.5,
|
|
302
|
+
2.6,
|
|
303
|
+
2.7,
|
|
304
|
+
2.8,
|
|
305
|
+
2.9,
|
|
306
|
+
3,
|
|
307
|
+
3.1,
|
|
308
|
+
3.2,
|
|
309
|
+
3.3,
|
|
310
|
+
3.4,
|
|
311
|
+
3.5,
|
|
312
|
+
3.6,
|
|
313
|
+
3.7,
|
|
314
|
+
3.8,
|
|
315
|
+
3.9
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
"mediumScoreType": {
|
|
319
|
+
"type": "number",
|
|
320
|
+
"enum": [
|
|
321
|
+
4,
|
|
322
|
+
4.1,
|
|
323
|
+
4.2,
|
|
324
|
+
4.3,
|
|
325
|
+
4.4,
|
|
326
|
+
4.5,
|
|
327
|
+
4.6,
|
|
328
|
+
4.7,
|
|
329
|
+
4.8,
|
|
330
|
+
4.9,
|
|
331
|
+
5,
|
|
332
|
+
5.1,
|
|
333
|
+
5.2,
|
|
334
|
+
5.3,
|
|
335
|
+
5.4,
|
|
336
|
+
5.5,
|
|
337
|
+
5.6,
|
|
338
|
+
5.7,
|
|
339
|
+
5.8,
|
|
340
|
+
5.9,
|
|
341
|
+
6,
|
|
342
|
+
6.1,
|
|
343
|
+
6.2,
|
|
344
|
+
6.3,
|
|
345
|
+
6.4,
|
|
346
|
+
6.5,
|
|
347
|
+
6.6,
|
|
348
|
+
6.7,
|
|
349
|
+
6.8,
|
|
350
|
+
6.9
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
"highScoreType": {
|
|
354
|
+
"type": "number",
|
|
355
|
+
"enum": [
|
|
356
|
+
7,
|
|
357
|
+
7.1,
|
|
358
|
+
7.2,
|
|
359
|
+
7.3,
|
|
360
|
+
7.4,
|
|
361
|
+
7.5,
|
|
362
|
+
7.6,
|
|
363
|
+
7.7,
|
|
364
|
+
7.8,
|
|
365
|
+
7.9,
|
|
366
|
+
8,
|
|
367
|
+
8.1,
|
|
368
|
+
8.2,
|
|
369
|
+
8.3,
|
|
370
|
+
8.4,
|
|
371
|
+
8.5,
|
|
372
|
+
8.6,
|
|
373
|
+
8.7,
|
|
374
|
+
8.8,
|
|
375
|
+
8.9
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
"criticalScoreType": {
|
|
379
|
+
"type": "number",
|
|
380
|
+
"enum": [
|
|
381
|
+
9,
|
|
382
|
+
9.1,
|
|
383
|
+
9.2,
|
|
384
|
+
9.3,
|
|
385
|
+
9.4,
|
|
386
|
+
9.5,
|
|
387
|
+
9.6,
|
|
388
|
+
9.7,
|
|
389
|
+
9.8,
|
|
390
|
+
9.9,
|
|
391
|
+
10
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
"severityType": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"enum": [
|
|
397
|
+
"NONE",
|
|
398
|
+
"LOW",
|
|
399
|
+
"MEDIUM",
|
|
400
|
+
"HIGH",
|
|
401
|
+
"CRITICAL"
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
"noneSeverityType": {
|
|
405
|
+
"const": "NONE"
|
|
406
|
+
},
|
|
407
|
+
"lowSeverityType": {
|
|
408
|
+
"const": "LOW"
|
|
409
|
+
},
|
|
410
|
+
"mediumSeverityType": {
|
|
411
|
+
"const": "MEDIUM"
|
|
412
|
+
},
|
|
413
|
+
"highSeverityType": {
|
|
414
|
+
"const": "HIGH"
|
|
415
|
+
},
|
|
416
|
+
"criticalSeverityType": {
|
|
417
|
+
"const": "CRITICAL"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"properties": {
|
|
421
|
+
"version": {
|
|
422
|
+
"description": "CVSS Version",
|
|
423
|
+
"type": "string",
|
|
424
|
+
"enum": [
|
|
425
|
+
"3.0"
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
"vectorString": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"pattern": "^CVSS:3[.]0/((AV:[NALP]|AC:[LH]|PR:[UNLH]|UI:[NR]|S:[UC]|[CIA]:[NLH]|E:[XUPFH]|RL:[XOTWU]|RC:[XURC]|[CIA]R:[XLMH]|MAV:[XNALP]|MAC:[XLH]|MPR:[XUNLH]|MUI:[XNR]|MS:[XUC]|M[CIA]:[XNLH])/)*(AV:[NALP]|AC:[LH]|PR:[UNLH]|UI:[NR]|S:[UC]|[CIA]:[NLH]|E:[XUPFH]|RL:[XOTWU]|RC:[XURC]|[CIA]R:[XLMH]|MAV:[XNALP]|MAC:[XLH]|MPR:[XUNLH]|MUI:[XNR]|MS:[XUC]|M[CIA]:[XNLH])$"
|
|
431
|
+
},
|
|
432
|
+
"attackVector": {
|
|
433
|
+
"$ref": "#/definitions/attackVectorType"
|
|
434
|
+
},
|
|
435
|
+
"attackComplexity": {
|
|
436
|
+
"$ref": "#/definitions/attackComplexityType"
|
|
437
|
+
},
|
|
438
|
+
"privilegesRequired": {
|
|
439
|
+
"$ref": "#/definitions/privilegesRequiredType"
|
|
440
|
+
},
|
|
441
|
+
"userInteraction": {
|
|
442
|
+
"$ref": "#/definitions/userInteractionType"
|
|
443
|
+
},
|
|
444
|
+
"scope": {
|
|
445
|
+
"$ref": "#/definitions/scopeType"
|
|
446
|
+
},
|
|
447
|
+
"confidentialityImpact": {
|
|
448
|
+
"$ref": "#/definitions/ciaType"
|
|
449
|
+
},
|
|
450
|
+
"integrityImpact": {
|
|
451
|
+
"$ref": "#/definitions/ciaType"
|
|
452
|
+
},
|
|
453
|
+
"availabilityImpact": {
|
|
454
|
+
"$ref": "#/definitions/ciaType"
|
|
455
|
+
},
|
|
456
|
+
"baseScore": {
|
|
457
|
+
"$ref": "#/definitions/scoreType"
|
|
458
|
+
},
|
|
459
|
+
"baseSeverity": {
|
|
460
|
+
"$ref": "#/definitions/severityType"
|
|
461
|
+
},
|
|
462
|
+
"exploitCodeMaturity": {
|
|
463
|
+
"$ref": "#/definitions/exploitCodeMaturityType"
|
|
464
|
+
},
|
|
465
|
+
"remediationLevel": {
|
|
466
|
+
"$ref": "#/definitions/remediationLevelType"
|
|
467
|
+
},
|
|
468
|
+
"reportConfidence": {
|
|
469
|
+
"$ref": "#/definitions/confidenceType"
|
|
470
|
+
},
|
|
471
|
+
"temporalScore": {
|
|
472
|
+
"$ref": "#/definitions/scoreType"
|
|
473
|
+
},
|
|
474
|
+
"temporalSeverity": {
|
|
475
|
+
"$ref": "#/definitions/severityType"
|
|
476
|
+
},
|
|
477
|
+
"confidentialityRequirement": {
|
|
478
|
+
"$ref": "#/definitions/ciaRequirementType"
|
|
479
|
+
},
|
|
480
|
+
"integrityRequirement": {
|
|
481
|
+
"$ref": "#/definitions/ciaRequirementType"
|
|
482
|
+
},
|
|
483
|
+
"availabilityRequirement": {
|
|
484
|
+
"$ref": "#/definitions/ciaRequirementType"
|
|
485
|
+
},
|
|
486
|
+
"modifiedAttackVector": {
|
|
487
|
+
"$ref": "#/definitions/modifiedAttackVectorType"
|
|
488
|
+
},
|
|
489
|
+
"modifiedAttackComplexity": {
|
|
490
|
+
"$ref": "#/definitions/modifiedAttackComplexityType"
|
|
491
|
+
},
|
|
492
|
+
"modifiedPrivilegesRequired": {
|
|
493
|
+
"$ref": "#/definitions/modifiedPrivilegesRequiredType"
|
|
494
|
+
},
|
|
495
|
+
"modifiedUserInteraction": {
|
|
496
|
+
"$ref": "#/definitions/modifiedUserInteractionType"
|
|
497
|
+
},
|
|
498
|
+
"modifiedScope": {
|
|
499
|
+
"$ref": "#/definitions/modifiedScopeType"
|
|
500
|
+
},
|
|
501
|
+
"modifiedConfidentialityImpact": {
|
|
502
|
+
"$ref": "#/definitions/modifiedCiaType"
|
|
503
|
+
},
|
|
504
|
+
"modifiedIntegrityImpact": {
|
|
505
|
+
"$ref": "#/definitions/modifiedCiaType"
|
|
506
|
+
},
|
|
507
|
+
"modifiedAvailabilityImpact": {
|
|
508
|
+
"$ref": "#/definitions/modifiedCiaType"
|
|
509
|
+
},
|
|
510
|
+
"environmentalScore": {
|
|
511
|
+
"$ref": "#/definitions/scoreType"
|
|
512
|
+
},
|
|
513
|
+
"environmentalSeverity": {
|
|
514
|
+
"$ref": "#/definitions/severityType"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"anyOf": [
|
|
518
|
+
{
|
|
519
|
+
"properties": {
|
|
520
|
+
"baseScore": {
|
|
521
|
+
"$ref": "#/definitions/noneScoreType"
|
|
522
|
+
},
|
|
523
|
+
"baseSeverity": {
|
|
524
|
+
"$ref": "#/definitions/noneSeverityType"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"properties": {
|
|
530
|
+
"baseScore": {
|
|
531
|
+
"$ref": "#/definitions/lowScoreType"
|
|
532
|
+
},
|
|
533
|
+
"baseSeverity": {
|
|
534
|
+
"$ref": "#/definitions/lowSeverityType"
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"properties": {
|
|
540
|
+
"baseScore": {
|
|
541
|
+
"$ref": "#/definitions/mediumScoreType"
|
|
542
|
+
},
|
|
543
|
+
"baseSeverity": {
|
|
544
|
+
"$ref": "#/definitions/mediumSeverityType"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"properties": {
|
|
550
|
+
"baseScore": {
|
|
551
|
+
"$ref": "#/definitions/highScoreType"
|
|
552
|
+
},
|
|
553
|
+
"baseSeverity": {
|
|
554
|
+
"$ref": "#/definitions/highSeverityType"
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"properties": {
|
|
560
|
+
"baseScore": {
|
|
561
|
+
"$ref": "#/definitions/criticalScoreType"
|
|
562
|
+
},
|
|
563
|
+
"baseSeverity": {
|
|
564
|
+
"$ref": "#/definitions/criticalSeverityType"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"required": [
|
|
570
|
+
"version",
|
|
571
|
+
"vectorString",
|
|
572
|
+
"baseScore",
|
|
573
|
+
"baseSeverity"
|
|
574
|
+
],
|
|
575
|
+
"additionalProperties": false,
|
|
576
|
+
"$id": "https://www.first.org/cvss/cvss-v3.0.json?20170531"
|
|
577
|
+
}
|