An open API service indexing awesome lists of open source software.

https://github.com/chandanbn/cvss

CVSS (Common Vulnerability Scoring System) Calculator CVSSv3.1
https://github.com/chandanbn/cvss

calculator cvss cvssv3

Last synced: 15 days ago
JSON representation

CVSS (Common Vulnerability Scoring System) Calculator CVSSv3.1

Awesome Lists containing this project

README

          

#CVSSjs

CVSS (Common Vulnerability Scoring System) Calculator

Standalone Calculator

CVSSjs Version 0.3.1 beta

Usage:

//include the cvss.js script


craete an HTML element with an id for eg.,



// create a new instance of CVSS calculator:
var c = new CVSS("cvssboard");

// create a new instance of CVSS calculator with some event handler callbacks
var c = new CVSS("cvssboard", {
onchange: function() {....} //optional
onsubmit: function() {....} //optional
}

// set a vector
c.set('CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L');

// it is also backwards compatible with CVSS v2 vectors,
// buts only sets the parameters that can be set without ambiguity.
c.set('AV:L/AC:L/Au:N/C:P/I:P/A:C');

//get the value
c.get() returns an object like:
{
score: 4.3,
vector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L'
}

Copyright (c) 2015-2019, Chandan B.N.

Copyright (c) 2019, FIRST.ORG, INC