Field note · Tools & open source

We built a CVSS 4.0 calculator,
because getting it right is harder than it looks.

CVSS 4.0 looks like arithmetic. It isn’t — every vector collapses into one of 270 equivalence classes and the final score is interpolated, so there’s no equation you can check by eye. We kept reaching for a quick calculator and not quite trusting the answer, so we built one we could — and open-sourced it.

By Martin Mwathi, Orvantis Security · Published 26 October 2026 · Tools · 3 min read


Version 3 of CVSS was a formula: plug in the metrics, turn the handle, out comes a number. Version 4 replaced that with something less obvious. Every vector is first reduced to one of 270 “MacroVector” equivalence classes; each class has a base score from a lookup table; and the final number is interpolated by measuring how far your exact vector sits from the most severe one in its class. There is no single equation you can verify by hand.

That matters, because a scoring tool that is quietly wrong is worse than no tool at all. A finding rated 6.9 instead of 7.0 is the difference between “we’ll get to it” and “fix it now.” If you can’t prove the number, you shouldn’t stake a remediation deadline on it.

cvss4 is a small, dependency-free CVSS 4.0 scorer: a command line, a Python library, and a single-file offline web calculator. Free and open source under a BSD licence.

Validated against the complete FIRST.org reference set — all 61,528 vectors pass.

Every valid vector scores exactly; every deliberately-malformed one is rejected. That check runs on every change, so it stays true — in the Python engine and the web calculator alike.

A few things we decided along the way

It’s the same discipline we bring to an engagement: if we can’t prove the number, we don’t trust it — and neither should you.

Get cvss4 on GitHub → Try the web calculator

Issues and pull requests welcome.


— Martin Mwathi, Orvantis Security. More field notes land monthly — see all or start a conversation →