Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unorsk/cvss-ts
https://github.com/unorsk/cvss-ts
cvssv4 typescript
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/unorsk/cvss-ts
- Owner: unorsk
- License: mit
- Created: 2024-07-10T09:44:55.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T10:35:32.000Z (2 months ago)
- Last Synced: 2024-12-12T15:50:48.239Z (about 1 month ago)
- Topics: cvssv4, typescript
- Language: TypeScript
- Homepage: https://unorsk.github.io/cvss-ts/
- Size: 442 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## CVSS implementation in TypeScript
This is based off the reference implementation at [https://github.com/RedHatProductSecurity/cvss-v4-calculator](cvss-v4-calculator)
### Building the project
Pre-requisites:
- BunBuild the project by running the following commands
```
bun install
bun run build
```Running tests
```
bun test
```Supported versions
- [ ] CVSS20
- [ ] CVSS30
- [ ] CVSS31
- [x] 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```