Repository navigation
Releases
Releases · secengcommons/cvss
CVSS v1.2.1
CVSS v1.2.1 updates release and verification dependencies without changing CVSS parsing, encoding or scoring behaviour.
Changed
- Updates the development toolchain to Go 1.27.2 while retaining Go 1.26 as the minimum supported version
- Adopts Verify v1.0.0-alpha6, CLI v1.1.1, Proctree v1.1.1 and CI v1.0.8
CVSS v1.2.0
CVSS v1.2.0 is the first release of github.com/secengcommons/cvss
Changed
- Moves the module from
github.com/cticommons/cvssto Security Engineering Commons; historical releases remain unchanged - Retains the versioned CVSS 2.0, 3.0, 3.1 and 4.0 package APIs
- Qualifies CVSS 4.0 against Pandatix v0.6.4 and the retained Red Hat rounding corrections
- Adds formula-mutation, JavaScript WebAssembly, WASI and complete platform qualification
- Raises the minimum Go version to 1.26
- Adopts shared SecEng Commons CI and Verify qualification
CVSS v1.1.2
Internal simplification and executable performance contracts for CTI Commons CVSS
- Centralises shared vector mechanics without changing public APIs or scoring behaviour
- Removes duplicated CVSS 3.0 and 3.1 parsing, representation and scoring code
- Retains version-specific packages and specification-specific behaviour
Structure
- Adds shared internal owners for CVSS 3 parsing and scoring
- Adds common metric-value, mixed-radix, score, fixture and vector-input helpers
- Keeps CVSS 2.0, 3.0, 3.1 and 4.0 concrete public types
- Removes the duplicated internal JSON text implementation
Verification
- Proves every packed CVSS 2.0 Base lookup state
- Proves every CVSS 4.0 metric value through the public lookup API
- Adds deterministic zero-allocation contracts for parsing, lookup, replacement, caller-buffer encoding and scoring
- Covers shared CVSS 3.0 and 3.1 Environmental scoring paths
- Retains all formula mutation, reference corpus, race and fuzz controls
Performance
- Adds one reproducible paired benchmark command
- Runs CTI Commons and Pandatix in alternating isolated processes
- Reports median results from a configurable positive odd sample count
- Records Go, platform, architecture and CPU identity
Run the paired benchmark with:
bash ./.github/scripts/verify.sh benchmarkInstall
go get github.com/cticommons/cvss@v1.1.2CVSS v1.1.1
Reproducibility and compatibility improvements for CTI Commons CVSS
- Adds an executable derivation for the retained CVSS 4.0 rounding corrections
- Lowers the minimum supported Go version from 1.25 to 1.24
- Preserves the existing public APIs and scoring behaviour
Qualification
- Regenerates the correction set from the pinned Red Hat calculator revision and retained FIRST corpus
- Verifies calculator and corpus inputs by exact length and SHA-256 before execution
- Produces output byte-identical to the retained 157-record correction fixture
- Clarifies that 62 Pandatix raw-score mismatches are corpus occurrences outside the correction set
- Confirms that all 38 Pandatix severity disagreements occur outside the correction set
- Documents the retained evidence supporting the CVSS 4.0 decimal-boundary epsilon
Compatibility
- Supports Go 1.24 and later
- Adds root and differential verification under Go 1.24 and Go 1.25
Install
go get github.com/cticommons/cvss@v1.1.1CVSS v1.1.0
Performance, memory and qualification improvements for CTI Commons CVSS
- Preserves the existing version-specific public APIs
- Reduces in-memory vectors to 4 bytes for CVSS 2.0, 5 bytes for CVSS 3.0 and 3.1 and 8 bytes for CVSS 4.0
- Keeps parsing, scoring, metric access and caller-buffer encoding allocation-free
- Removes every external dependency from the production module
Performance
- Replaces expanded metric fields with compact immutable state
- Improves parsing and canonical encoding across every supported version
- Adds a direct canonical JSON decoding path
- Retains readable scoring formulas separately from representation mechanics
- Keeps validated immutable metric replacement
Qualification
- Adds differential CVSS 2.0, 3.0 and 3.1 testing against
pandatix/go-cvssv0.6.2 - Qualifies CVSS 4.0 against all 41,270 valid vectors in the pinned FIRST reference corpus
- Retains 157 unique rounding corrections from the pinned Red Hat calculator revision
- Identifies 184 Pandatix score differences and 38 severity differences against the corrected corpus
- Adds paired parsing, scoring, encoding, lookup, replacement and memory benchmarks
Verification
- Moves development tools into an isolated Go module
- Keeps the production module graph limited to
github.com/cticommons/cvss - Extends formatting, vet, lint, vulnerability, race, fuzz and compatibility checks across the differential module
- Extends CI and Dependabot coverage across the root, differential and tool modules
Install
go get github.com/cticommons/cvss@v1.1.0CVSS v1.0.0
The first stable release of CTI Commons CVSS
- Implements CVSS 2.0, 3.0, 3.1 and 4.0 vector formats through small version-specific Go APIs
Included
- Strict vector parsing
- Canonical text and JSON encoding
- Base, Temporal, Environmental and Threat scoring as defined by each specification
- Typed metric lookup
- Validated immutable metric replacement
- Impact and Exploitability subscores for CVSS 2.0, 3.0 and 3.1
- Score nomenclature for CVSS 4.0
- Transactional text and JSON decoding
- Root-level version identification
- Caller-buffer encoding
- Exact scores represented in tenths
Packages
| Version | Package | Scores |
|---|---|---|
| CVSS 2.0 | github.com/cticommons/cvss/cvss20 |
Base, Temporal and Environmental |
| CVSS 3.0 | github.com/cticommons/cvss/cvss30 |
Base, Temporal and Environmental |
| CVSS 3.1 | github.com/cticommons/cvss/cvss31 |
Base, Temporal and Environmental |
| CVSS 4.0 | github.com/cticommons/cvss/cvss40 |
Base, Threat and Environmental combinations |
CVSS 1.0 is not supported because it does not define an interoperable vector format precisely enough to implement
Install
go get github.com/cticommons/cvss@v1.0.0