File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,15 @@ docker run -it -rm -p 5000:5000 ghcr.io/l4rm4nd/cvss-api:latest
13
13
Afterwards, you can utilize the API server:
14
14
15
15
````
16
+ # query CVSS 2.0 vector
16
17
curl "http://127.0.0.1:5000/cvss?vector=CVSS:2.0/AV:N/AC:L/Au:N/C:C/I:C/A:C"
18
+ # query CVSS 3.1 vector
17
19
curl "http://127.0.0.1:5000/cvss?vector=CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
20
+ # query CVSS 4.0 vector
18
21
curl "http://127.0.0.1:5000/cvss?vector=CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
19
22
````
20
23
21
- The API will respond with the following JSON:
24
+ The API will respond with the following example JSON:
22
25
23
26
````
24
27
{
@@ -29,3 +32,8 @@ The API will respond with the following JSON:
29
32
````
30
33
31
34
Combine with an TLS reverse proxy. CORS is already allowed on the Flask application.
35
+
36
+ > [ !TIP]
37
+ > For CVSS 4.0, the API server defines ` Subsequent System Impact Metrics ` as optional.
38
+ >
39
+ > Therefore, you can neglect ` SC ` , ` SI ` and ` SA ` from your provided vector string. The backend will automatically set those to ` N ` (None).
You can’t perform that action at this time.
0 commit comments