This is based off the reference implementation at https://github.com/RedHatProductSecurity/cvss-v4-calculator
Pre-requisites:
- Bun
Build the project by running the following commands
bun install
bun run build
Running tests
bun test
Supported versions
- CVSS20
- CVSS30
- CVSS31
- CVSS40
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