Free tool

CVSS v4.0 calculator and vector reference

Set the eleven Base metrics and read the score, the severity and the vector string. The score is computed in your browser with the MacroVector method from the FIRST specification, and tested against FIRST’s own published example scores.

Paste a vector and the controls follow. Change a control and the vector follows.

Attack Vector (AV)
Attack Complexity (AC)
Attack Requirements (AT)
Privileges Required (PR)
User Interaction (UI)
Vulnerable System Confidentiality (VC)
Vulnerable System Integrity (VI)
Vulnerable System Availability (VA)
Subsequent System Confidentiality (SC)
Subsequent System Integrity (SI)
Subsequent System Availability (SA)
Threat, Environmental and Supplemental metrics (optional)
Threat

Optional, and set by the consumer of the score, not the tester.

Exploit Maturity (E)
Environmental

Optional, set by the organisation that operates the system.

Confidentiality Requirement (CR)
Integrity Requirement (IR)
Availability Requirement (AR)
Modified Attack Vector (MAV)
Modified Attack Complexity (MAC)
Modified Attack Requirements (MAT)
Modified Privileges Required (MPR)
Modified User Interaction (MUI)
Modified Vulnerable System Confidentiality (MVC)
Modified Vulnerable System Integrity (MVI)
Modified Vulnerable System Availability (MVA)
Modified Subsequent System Confidentiality (MSC)
Modified Subsequent System Integrity (MSI)
Modified Subsequent System Availability (MSA)
Supplemental

Optional context for the consumer. None of these change the number.

Safety (S)
Automatable (AU)
Recovery (R)
Value Density (V)
Vulnerability Response Effort (RE)
Provider Urgency (U)
CVSS-B score 0.0None · CVSS-BMacroVector 002201

v4.0 or v3.1: which page you need

The live CVSS 3.1 calculator takes the eight v3.1 base metrics, computes the base score and the severity band in the browser, and accepts a pasted 3.0 vector by rewriting the prefix. It does not handle v4.0: a 4.0 vector is rejected there instead of being guessed at. This page is the opposite. A ticket, a client template or a bug bounty program that asks for a 3.1 number goes to that page. Anything that begins with CVSS:4.0/, needs Attack Requirements or the Subsequent System metrics, or follows a report standard that names v4.0 belongs here. The FIRST user guide kept the qualitative bands aligned between versions, but the metrics and formulas differ, so neither page can translate the other’s vector. The report writing guide covers how to state which version a finding was scored under.

The v4.0 vector string

Section 7 of the FIRST specification defines the string. It begins with the label CVSS:4.0, followed by metric name and value pairs separated by forward slashes. Table 23 fixes the sequence: the eleven Base metrics (AV, AC, AT, PR, UI, VC, VI, VA, SC, SI, SA), then Exploit Maturity (E), then the three Security Requirements (CR, IR, AR), then the Modified Base metrics (MAV, MAC, MAT, MPR, MUI, MVC, MVI, MVA, MSC, MSI, MSA), then the Supplemental metrics (S, AU, R, V, RE, U). Every other ordering is invalid. The Base group is mandatory. Threat, Environmental and Supplemental metrics are optional, and a metric that is absent is read as Not Defined (X).

Section 1.3 names the score by the groups that produced it: CVSS-B for Base alone, CVSS-BT for Base with Threat, CVSS-BE for Base with Environmental, CVSS-BTE for all three. The calculator above shows that label beside the number. Put it next to the number in a report too: a bare 8.7 does not tell a reader whether exploit maturity or the client’s own requirements were applied.

Metric reference

Base metrics, specification sections 2.1 and 2.2, Tables 1 to 11. All eleven are required.

MetricValuesWhat it measures (specification)
Attack Vector (AV)N, A, L, Pfrom where exploitation is possible: Network, Adjacent, Local, Physical (Table 1)
Attack Complexity (AC)L, Hactions the attacker must take to evade or circumvent security-enhancing conditions (Table 2)
Attack Requirements (AT)N, Pdeployment and execution conditions of the vulnerable system that the attack depends on (Table 3)
Privileges Required (PR)N, L, Hthe privilege level the attacker must already hold before exploitation (Table 4)
User Interaction (UI)N, P, Awhether a human other than the attacker must take part: None, Passive, Active (Table 5)
Vulnerable System Confidentiality (VC)H, L, Nconfidentiality loss on the vulnerable system itself (Table 6)
Vulnerable System Integrity (VI)H, L, Nintegrity loss on the vulnerable system itself (Table 8)
Vulnerable System Availability (VA)H, L, Navailability loss on the vulnerable system itself (Table 10)
Subsequent System Confidentiality (SC)H, L, Nconfidentiality loss on systems beyond the vulnerable one (Table 7)
Subsequent System Integrity (SI)H, L, Nintegrity loss on systems beyond the vulnerable one (Table 9)
Subsequent System Availability (SA)H, L, Navailability loss on systems beyond the vulnerable one (Table 11)

Threat metric, specification section 3, Table 12. Optional.

MetricValuesWhat it measures (specification)
Exploit Maturity (E)X, A, P, Uthe likelihood that the vulnerability is attacked: Attacked, Proof-of-Concept, Unreported, or Not Defined

Environmental metrics, specification section 4. Optional, and set by the organisation that operates the system.

MetricValuesWhat it measures (specification)
Confidentiality Requirement (CR)X, H, M, Lhow much the organisation depends on the asset’s confidentiality (section 4.1)
Integrity Requirement (IR)X, H, M, Lhow much the organisation depends on the asset’s integrity (section 4.1)
Availability Requirement (AR)X, H, M, Lhow much the organisation depends on the asset’s availability (section 4.1)
Modified Base metrics (MAV, MAC, MAT, MPR, MUI, MVC, MVI, MVA, MSC, MSI, MSA)X, then the value set of the Base metric they overrideoverride the matching Base metric for this environment (section 4.2); MSI and MSA add Safety (S), where people could be injured (section 4.2.1)

Supplemental metrics, specification section 5, Tables 16 to 21: Safety S (X, N, P), Automatable AU (X, N, Y), Recovery R (X, A, U, I), Value Density V (X, D, C), Vulnerability Response Effort RE (X, L, M, H) and Provider Urgency U (X, Clear, Green, Amber, Red) carry context for the consumer and never move the numeric score.

Where testers disagree

The FIRST user guide exists because the same finding gets different vectors from different analysts. Five places where it rules, and where review time is best spent:

Attack Complexity against Attack Requirements. The guide reserves AC for exploit engineering needed to get past defensive technologies and assigns AT to conditions of the vulnerable component. Its own example contrasts defeating a mitigation such as ASLR with winning a race condition: the first is complexity, the second is a requirement. Testers trained on v3.1, where both were AC:H, still mark non-default settings and timing windows as AC:H.

Subsequent System impact. Per the guide, a web application flaw that lands in the browser makes the user clients Subsequent Systems, while a crashed web or SSH server is impact on the Vulnerable System only. Injection into a database that shares credentials with the application stays within one security scope. The common error is marking SC or SI as High because a second host exists, with no second security authority shown.

Passive against Active User Interaction. UI:P covers limited, involuntary interaction with the vulnerable component. UI:A needs specific, conscious action, and also applies where the user’s actions would subvert a protection mechanism. Testers who write “the victim opens the page” and pick UI:A are usually describing Passive.

Privileges Required in libraries and chains. For a library whose embedding program is unknown, the guide tells the analyst to assume high privileges. For a chain of vulnerabilities, it takes the least-restrictive Exploitability metrics and the most severe Impact metrics. Testers often score the chain’s first link alone, or score a library as if it ran unprivileged.

More than one Base score. When several CVSS-B scores apply but only one can be published, the guide says the highest one must be used, and asks that assumptions be written down so the result is consistent and defensible. A report that silently picks the lower score is the kind of inconsistency a second reviewer should catch.

Review with a model, decide as a tester

The sequence is fixed. The tester writes the finding and proposes a full Base vector. The vector passes the format check below. The finding text and the vector go out in one request whose response_format is a json_schema, and the reply holds one verdict per Base metric: agree or disagree, a reason, and the words from the finding that the reason rests on. The tester reads each disagreement, accepts it by changing the value or rejects it by writing why the finding already supports the value. The vector that goes into the report is the tester’s. The model never writes a vector of its own; it answers for values a person already chose.

Redact client identifiers before the request leaves, as the triage guide describes and your signed engagement rules record. Endpoint details and SDK settings are on the docs page.

python
1import json
2import os
3
4from openai import OpenAI
5
6from cvss4_vector import normalise_cvss4 # the validator further down this page
7
8BASE_METRICS = ["AV", "AC", "AT", "PR", "UI", "VC", "VI", "VA", "SC", "SI", "SA"]
9
10REVIEW_SCHEMA = {
11 "type": "object",
12 "properties": {
13 "verdicts": {
14 "type": "array",
15 "minItems": 11,
16 "maxItems": 11,
17 "items": {
18 "type": "object",
19 "properties": {
20 "metric": {"type": "string", "enum": BASE_METRICS},
21 "proposed": {"type": "string"},
22 "verdict": {"type": "string", "enum": ["agree", "disagree"]},
23 "reason": {"type": "string"},
24 "evidence": {
25 "type": "string",
26 "description": "Words copied from the finding; empty when the finding is silent",
27 },
28 },
29 "required": ["metric", "proposed", "verdict", "reason", "evidence"],
30 "additionalProperties": False,
31 },
32 }
33 },
34 "required": ["verdicts"],
35 "additionalProperties": False,
36}
37
38INSTRUCTIONS = (
39 "You check a CVSS v4.0 Base vector against the written finding from an authorised test. "
40 "Give one verdict for each of the eleven Base metrics, in vector order. "
41 "Disagree only where the finding's own words contradict the proposed value, and copy those words "
42 "into evidence. Where the finding is silent, agree and state in reason what it should say. "
43 "Never propose a vector and never compute a score."
44)
45
46client = OpenAI(base_url="https://api.pentestllm.ai/v1", api_key=os.environ["PENTESTLLM_API_KEY"])
47
48
49def review(finding: str, vector: str) -> list[dict]:
50 vector = normalise_cvss4(vector) # rejects anything that is not a v4.0 vector
51 completion = client.chat.completions.create(
52 model="auto/security",
53 messages=[
54 {"role": "system", "content": INSTRUCTIONS},
55 {"role": "user", "content": f"Proposed vector: {vector}\n\nFinding:\n{finding}"},
56 ],
57 response_format={
58 "type": "json_schema",
59 "json_schema": {"name": "cvss4_review", "schema": REVIEW_SCHEMA},
60 },
61 )
62 return json.loads(completion.choices[0].message.content)["verdicts"]
63
64
65if __name__ == "__main__":
66 with open("finding.md", encoding="utf-8") as fh:
67 finding_text = fh.read()
68 proposed = "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
69 for v in review(finding_text, proposed):
70 flag = "DISAGREE" if v["verdict"] == "disagree" else "agree "
71 print(f'{flag} {v["metric"]}:{v["proposed"]} {v["reason"]} [{v["evidence"]}]')

Treat a disagreement with empty evidence as a request for more detail in the finding, not as a scoring correction. qwen3.8-27b-cybersecurity can replace auto/security when you want one fixed open-weight build for repeatable reviews.

Vector validator

Save this as cvss4_vector.py. It parses a vector into a dictionary, checks the prefix, the metric order and the permitted values against Table 23, confirms that every Base metric is present, and returns the vector with Not Defined entries removed. It computes nothing; the number comes from the MacroVector method in section 8 of the specification, which the calculator at the top of this page applies. Run python3 cvss4_vector.py; the last line should read cvss4_vector self-test passed.

python
1"""CVSS v4.0 vector format check and normaliser. It does not score."""
2
3# Table 23 of the FIRST CVSS v4.0 specification: metric order and permitted values.
4TABLE = {
5 "AV": ("N", "A", "L", "P"), "AC": ("L", "H"), "AT": ("N", "P"),
6 "PR": ("N", "L", "H"), "UI": ("N", "P", "A"),
7 "VC": ("H", "L", "N"), "VI": ("H", "L", "N"), "VA": ("H", "L", "N"),
8 "SC": ("H", "L", "N"), "SI": ("H", "L", "N"), "SA": ("H", "L", "N"),
9 "E": ("X", "A", "P", "U"),
10 "CR": ("X", "H", "M", "L"), "IR": ("X", "H", "M", "L"), "AR": ("X", "H", "M", "L"),
11 "MAV": ("X", "N", "A", "L", "P"), "MAC": ("X", "L", "H"), "MAT": ("X", "N", "P"),
12 "MPR": ("X", "N", "L", "H"), "MUI": ("X", "N", "P", "A"),
13 "MVC": ("X", "H", "L", "N"), "MVI": ("X", "H", "L", "N"), "MVA": ("X", "H", "L", "N"),
14 "MSC": ("X", "H", "L", "N"), "MSI": ("X", "S", "H", "L", "N"), "MSA": ("X", "S", "H", "L", "N"),
15 "S": ("X", "N", "P"), "AU": ("X", "N", "Y"), "R": ("X", "A", "U", "I"),
16 "V": ("X", "D", "C"), "RE": ("X", "L", "M", "H"), "U": ("X", "Clear", "Green", "Amber", "Red"),
17}
18ORDER = list(TABLE) # dict insertion order is Table 23 order
19BASE = ORDER[:11]
20PREFIX = "CVSS:4.0"
21
22
23def normalise_cvss4(vector: str) -> str:
24 """Validate a CVSS v4.0 vector; return it with Not Defined (X) metrics dropped."""
25 parts = vector.strip().split("/")
26 if parts[0] != PREFIX:
27 raise ValueError(f"expected prefix {PREFIX}, got {parts[0]!r}")
28 metrics: dict[str, str] = {}
29 for part in parts[1:]:
30 name, colon, value = part.partition(":")
31 if not colon or name not in TABLE:
32 raise ValueError(f"unknown or malformed metric {part!r}")
33 if name in metrics:
34 raise ValueError(f"metric {name} appears twice")
35 if value not in TABLE[name]:
36 raise ValueError(f"{name} does not allow {value!r}; permitted: {', '.join(TABLE[name])}")
37 metrics[name] = value
38 missing = [m for m in BASE if m not in metrics]
39 if missing:
40 raise ValueError(f"Base metrics missing: {', '.join(missing)}")
41 positions = [ORDER.index(name) for name in metrics]
42 if positions != sorted(positions):
43 raise ValueError("metrics are not in Table 23 order")
44 kept = [f"{m}:{v}" for m, v in metrics.items() if v != "X"]
45 return "/".join([PREFIX, *kept])
46
47
48if __name__ == "__main__":
49 base = "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
50 assert normalise_cvss4(base) == base
51 assert normalise_cvss4(base + "/E:X/CR:H/MSI:S/U:Green") == base + "/CR:H/MSI:S/U:Green"
52 assert normalise_cvss4(" " + base + "/E:U\n") == base + "/E:U"
53 rejected = {
54 "v3.1 vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
55 "duplicate metric": base + "/E:P/E:A",
56 "optional metric out of order": base + "/MAV:N/E:A",
57 "Base metric out of order": "CVSS:4.0/AC:L/AV:N/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
58 "missing Base metric": base.rsplit("/", 1)[0],
59 "value not permitted": base.replace("AT:P", "AT:H"),
60 "Safety on MSC": base + "/MSC:S",
61 }
62 for label, bad in rejected.items():
63 try:
64 normalise_cvss4(bad)
65 except ValueError:
66 continue
67 raise AssertionError(f"{label} was accepted: {bad}")
68 print("cvss4_vector self-test passed")

Sources

Questions

Can a v3.1 vector be converted to a v4.0 vector?

No. The FIRST user guide describes the changes between versions but gives no mapping between them. Scope was removed and replaced by three Subsequent System metrics, Attack Requirements was split out of Attack Complexity, and User Interaction gained a Passive value. Each of those needs a judgement that the old vector never recorded. Re-read the finding and score it again under v4.0, then keep both vectors in the report with their versions labelled.

Why does the score only appear once all eleven Base metrics are set?

In v4.0 the number is not a sum of per-metric weights. Section 8 of the specification groups every possible vector into MacroVectors through six equivalence sets, looks up a value for the MacroVector, and adjusts it by the vector’s distance from the top of its group. A partial Base vector has no position in that table. This calculator starts from a complete Base vector and updates the score as you change any metric.

Do Threat and Environmental metrics belong to the tester or the client?

To the client. The user guide assigns Threat and Environmental scoring to the CVSS consumer, not the analyst who found the issue, and the Security Requirements describe how much one organisation depends on one asset. A tester signs the CVSS-B vector. If the client supplies Exploit Maturity or its requirements, add them after the Base block and the label changes to CVSS-BT, CVSS-BE or CVSS-BTE so a reader knows what went into it.

Is the vector I enter sent anywhere?

No. The score is calculated in your browser and nothing you select is sent to our servers. A shared link carries the vector after the # sign, a part of the address that browsers do not send to the server. The optional model review is a separate step you run yourself, against an endpoint you choose.

More tools, prices and docs

Join on TelegramHelp