Lorem

Example

The following example shows the calculation of an overall score from a CVSS v2.0 vector.

The next example shows the calculation of an overall score from a CVSS v3.0/1 vector.

Usage

Usage is extremely straightforward. Simply import the script into your HTML file:


<script src="node_modules/vuln-vects/dist/vuln-vects.js"></script>
                

Now, you can calculate the numeric score from a CVSS vector easily. Score will be calculated using an appropriate algorithm depending on the CVSS vector version detected by the library.


<script>
    $(document).ready(function() {
        console.log(VulnVects.parseCvssVector('CVSS2#AV:A/AC:L/Au:M/C:C/I:P/A:C'));
        console.log(VulnVects.parseCvssVector('CVSS:3.0/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L'));
    });
</script>
                
Built by BreachLock Inc.