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.
| Metric | Values | What it measures (specification) |
|---|---|---|
| Attack Vector (AV) | N, A, L, P | from where exploitation is possible: Network, Adjacent, Local, Physical (Table 1) |
| Attack Complexity (AC) | L, H | actions the attacker must take to evade or circumvent security-enhancing conditions (Table 2) |
| Attack Requirements (AT) | N, P | deployment and execution conditions of the vulnerable system that the attack depends on (Table 3) |
| Privileges Required (PR) | N, L, H | the privilege level the attacker must already hold before exploitation (Table 4) |
| User Interaction (UI) | N, P, A | whether a human other than the attacker must take part: None, Passive, Active (Table 5) |
| Vulnerable System Confidentiality (VC) | H, L, N | confidentiality loss on the vulnerable system itself (Table 6) |
| Vulnerable System Integrity (VI) | H, L, N | integrity loss on the vulnerable system itself (Table 8) |
| Vulnerable System Availability (VA) | H, L, N | availability loss on the vulnerable system itself (Table 10) |
| Subsequent System Confidentiality (SC) | H, L, N | confidentiality loss on systems beyond the vulnerable one (Table 7) |
| Subsequent System Integrity (SI) | H, L, N | integrity loss on systems beyond the vulnerable one (Table 9) |
| Subsequent System Availability (SA) | H, L, N | availability loss on systems beyond the vulnerable one (Table 11) |
Threat metric, specification section 3, Table 12. Optional.
| Metric | Values | What it measures (specification) |
|---|---|---|
| Exploit Maturity (E) | X, A, P, U | the 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.
| Metric | Values | What it measures (specification) |
|---|---|---|
| Confidentiality Requirement (CR) | X, H, M, L | how much the organisation depends on the asset’s confidentiality (section 4.1) |
| Integrity Requirement (IR) | X, H, M, L | how much the organisation depends on the asset’s integrity (section 4.1) |
| Availability Requirement (AR) | X, H, M, L | how 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 override | override 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.
import jsonimport os from openai import OpenAI from cvss4_vector import normalise_cvss4 # the validator further down this page BASE_METRICS = ["AV", "AC", "AT", "PR", "UI", "VC", "VI", "VA", "SC", "SI", "SA"] REVIEW_SCHEMA = { "type": "object", "properties": { "verdicts": { "type": "array", "minItems": 11, "maxItems": 11, "items": { "type": "object", "properties": { "metric": {"type": "string", "enum": BASE_METRICS}, "proposed": {"type": "string"}, "verdict": {"type": "string", "enum": ["agree", "disagree"]}, "reason": {"type": "string"}, "evidence": { "type": "string", "description": "Words copied from the finding; empty when the finding is silent", }, }, "required": ["metric", "proposed", "verdict", "reason", "evidence"], "additionalProperties": False, }, } }, "required": ["verdicts"], "additionalProperties": False,} INSTRUCTIONS = ( "You check a CVSS v4.0 Base vector against the written finding from an authorised test. " "Give one verdict for each of the eleven Base metrics, in vector order. " "Disagree only where the finding's own words contradict the proposed value, and copy those words " "into evidence. Where the finding is silent, agree and state in reason what it should say. " "Never propose a vector and never compute a score.") client = OpenAI(base_url="https://api.pentestllm.ai/v1", api_key=os.environ["PENTESTLLM_API_KEY"]) def review(finding: str, vector: str) -> list[dict]: vector = normalise_cvss4(vector) # rejects anything that is not a v4.0 vector completion = client.chat.completions.create( model="auto/security", messages=[ {"role": "system", "content": INSTRUCTIONS}, {"role": "user", "content": f"Proposed vector: {vector}\n\nFinding:\n{finding}"}, ], response_format={ "type": "json_schema", "json_schema": {"name": "cvss4_review", "schema": REVIEW_SCHEMA}, }, ) return json.loads(completion.choices[0].message.content)["verdicts"] if __name__ == "__main__": with open("finding.md", encoding="utf-8") as fh: finding_text = fh.read() 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" for v in review(finding_text, proposed): flag = "DISAGREE" if v["verdict"] == "disagree" else "agree " 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.
"""CVSS v4.0 vector format check and normaliser. It does not score.""" # Table 23 of the FIRST CVSS v4.0 specification: metric order and permitted values.TABLE = { "AV": ("N", "A", "L", "P"), "AC": ("L", "H"), "AT": ("N", "P"), "PR": ("N", "L", "H"), "UI": ("N", "P", "A"), "VC": ("H", "L", "N"), "VI": ("H", "L", "N"), "VA": ("H", "L", "N"), "SC": ("H", "L", "N"), "SI": ("H", "L", "N"), "SA": ("H", "L", "N"), "E": ("X", "A", "P", "U"), "CR": ("X", "H", "M", "L"), "IR": ("X", "H", "M", "L"), "AR": ("X", "H", "M", "L"), "MAV": ("X", "N", "A", "L", "P"), "MAC": ("X", "L", "H"), "MAT": ("X", "N", "P"), "MPR": ("X", "N", "L", "H"), "MUI": ("X", "N", "P", "A"), "MVC": ("X", "H", "L", "N"), "MVI": ("X", "H", "L", "N"), "MVA": ("X", "H", "L", "N"), "MSC": ("X", "H", "L", "N"), "MSI": ("X", "S", "H", "L", "N"), "MSA": ("X", "S", "H", "L", "N"), "S": ("X", "N", "P"), "AU": ("X", "N", "Y"), "R": ("X", "A", "U", "I"), "V": ("X", "D", "C"), "RE": ("X", "L", "M", "H"), "U": ("X", "Clear", "Green", "Amber", "Red"),}ORDER = list(TABLE) # dict insertion order is Table 23 orderBASE = ORDER[:11]PREFIX = "CVSS:4.0" def normalise_cvss4(vector: str) -> str: """Validate a CVSS v4.0 vector; return it with Not Defined (X) metrics dropped.""" parts = vector.strip().split("/") if parts[0] != PREFIX: raise ValueError(f"expected prefix {PREFIX}, got {parts[0]!r}") metrics: dict[str, str] = {} for part in parts[1:]: name, colon, value = part.partition(":") if not colon or name not in TABLE: raise ValueError(f"unknown or malformed metric {part!r}") if name in metrics: raise ValueError(f"metric {name} appears twice") if value not in TABLE[name]: raise ValueError(f"{name} does not allow {value!r}; permitted: {', '.join(TABLE[name])}") metrics[name] = value missing = [m for m in BASE if m not in metrics] if missing: raise ValueError(f"Base metrics missing: {', '.join(missing)}") positions = [ORDER.index(name) for name in metrics] if positions != sorted(positions): raise ValueError("metrics are not in Table 23 order") kept = [f"{m}:{v}" for m, v in metrics.items() if v != "X"] return "/".join([PREFIX, *kept]) if __name__ == "__main__": 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" assert normalise_cvss4(base) == base assert normalise_cvss4(base + "/E:X/CR:H/MSI:S/U:Green") == base + "/CR:H/MSI:S/U:Green" assert normalise_cvss4(" " + base + "/E:U\n") == base + "/E:U" rejected = { "v3.1 vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "duplicate metric": base + "/E:P/E:A", "optional metric out of order": base + "/MAV:N/E:A", "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", "missing Base metric": base.rsplit("/", 1)[0], "value not permitted": base.replace("AT:P", "AT:H"), "Safety on MSC": base + "/MSC:S", } for label, bad in rejected.items(): try: normalise_cvss4(bad) except ValueError: continue raise AssertionError(f"{label} was accepted: {bad}") print("cvss4_vector self-test passed")Sources
- FIRST CVSS v4.0 specification document (read 2026-11-21)
- FIRST CVSS v4.0 user guide (read 2026-11-21)
- FIRST CVSS v4.0 examples (read 2026-11-21): the calculator is tested against every published score here
- FIRST reference implementation (read 2026-11-21): the MacroVector and interpolation method the scorer is ported from