unorsk / cvss-ts

Home Page:https://unorsk.github.io/cvss-ts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CVSS implementation in TypeScript

It is based off the reference implementation at https://github.com/RedHatProductSecurity/cvss-v4-calculator

Building the project

Pre-requisites:

  • Node.js
  • Bun

Build the project by running the following commands

npm install
npm run build

Supported versions

  • CVSS20
  • CVSS30
  • CVSS31
  • CVSS40

Basic CVSS anatomy

                       Availability Impact ╮
                      Integrity Impact ╮   │
            Confidentiality Impact ╮   │   │
                 Scope Changed ╮   │   │   │
                             ╭─┴╮╭─┴╮╭─┴╮╭─┴╮
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
╰┬─────╯╰┬──╯╰┬──╯╰┬──╯╰┬──╯
 │       │    │    │    ╰ User Interaction is None
 │       │    │    ╰ Privileges Required is None
 │       │    ╰ Attack Complexity is Low
 │       ╰ Attack Vector is Network
 ╰ This is a CVSS 3.1

About

https://unorsk.github.io/cvss-ts/


Languages

Language:TypeScript 98.1%Language:HTML 1.6%Language:JavaScript 0.2%