CVSS 4.0 Examples: Vectors for Common Web Pentest Findings
TL;DR: In CVSS 4.0, common web pentest findings score like this: reflected XSS scores 5.1 when the victim must click a link and the impact stays in the victim's browser, IDOR that exposes every user's records scores 7.1, and unauthenticated SQL injection with read and write access scores 9.3. Each score depends on stated assumptions, so the table below gives the vector, the assumption and the score together. Haxset Research computed every score with FIRST's own calculator code.
Key points
- With network access, no login and no user interaction, any impact rated only Low scores 6.9 (Medium), even a verbose error page.
- Moving one metric changes the band: a race condition scores 2.3 (Low) with
AT:Pand 5.3 (Medium) withAT:N. - In CVSS 4.0, impact on the victim's browser goes in
SC,SIandSA, so a typical XSS vector hasVC:N/VI:N/VA:N.
CVSS 4.0 vectors for common web pentest findings
The table gives one base vector for each finding type, under the assumption in the second column. Every score is a CVSS-B score, which means it uses base metrics only. FIRST's specification says this label "should be used wherever a numerical CVSS value is displayed or communicated."1 You may copy the vectors and the table freely, and a link back to this page is appreciated.
| Finding | Assumption | CVSS 4.0 vector | CVSS-B | Severity |
|---|---|---|---|---|
| Reflected XSS | No login needed, the victim clicks a crafted link, impact stays in the victim's browser | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | 5.1 | Medium |
| Stored XSS | A low-privilege user stores the payload, other users see it during normal use | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | 5.1 | Medium |
| SQL injection | No login needed, the attacker can read, change and delete anything in the database | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | 9.3 | Critical |
| IDOR (read) | A low-privilege user reads every other user's records by changing an ID | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | 7.1 | High |
| Broken function-level authorization | A low-privilege user calls admin API endpoints and gets full admin control | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | 8.7 | High |
| SSRF | No login needed, the server fetches any URL and returns the response, the attacker can only read from internal services (VI:L: the app sends requests the attacker chooses) | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:N/SA:N | 6.9 | Medium |
| CSRF | The victim clicks a link, and one setting in the victim's account changes | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | 5.1 | Medium |
| Open redirect | The victim clicks a link and lands on the attacker's site (our reading, see below) | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N | 5.1 | Medium |
| OTP brute force to account takeover | No attempt limit on a password-reset code, so the attacker can take over any user account | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | 9.3 | Critical |
| JWT signature not verified | No login needed, the attacker forges a token for any user, including an admin who can disable the service | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | 9.3 | Critical |
| Path traversal (file read) | No login needed, the attacker reads any file the application can read, such as configuration and log files | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | 8.7 | High |
| Race condition (limit overrun) | A low-privilege user redeems a single-use coupon twice, but must win a race | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | 2.3 | Low |
The reflected XSS, stored XSS and CSRF rows use the same vectors as FIRST's examples for CVE-2022-24682, CVE-2020-0926 and CVE-2023-5602.2 FIRST's SSRF example, CVE-2024-1233, scores subsequent-system impact as Low for confidentiality, integrity and availability, then gives a variation with read-only reach that it calls "a more typical impact". Our SSRF row puts that read-only case in the base metrics, so SI and SA are None.
FIRST's SQL injection example, CVE-2023-30545, needs a login and only reads data, so it matches our read-only variant with a login below. We found no FIRST example for the other seven finding types. Those rows and our main SQL injection row are Haxset's reading of the specification.
An open redirect takes nothing from the application itself, so we put its impact on the victim's browser as SI:L: the browser goes somewhere the user did not choose. We score the takeover of any user account as High confidentiality and integrity impact, as in the OTP row, because the attacker can pick the account.
Taking over one chosen victim's account is a judgment call. In the variants table further down, we score it VC:H/VI:H, which gives 8.5 for the CSRF and open redirect variants. FIRST's first variation of CVE-2022-24682 scores abuse of one user's session as VC:L/VI:L instead.2 If you follow FIRST, the CSRF and open redirect variants score 5.1 instead of 8.5.
How we computed the scores
We computed each score twice: once with FIRST's own calculator code, run unchanged, and once with an independent open-source Python implementation. The two agreed on every vector in this post. We also scored eight vectors from FIRST's examples document: CVE-2022-24682 and its first variation, CVE-2020-0926, CVE-2023-5602, CVE-2024-1233, CVE-2023-30545, CVE-2021-23846 and CVE-2024-55228. Both implementations gave the score FIRST publishes for each one.2
Do not estimate CVSS 4.0 scores by hand. Version 4.0 sorts vectors into groups called MacroVectors, each "of comparable qualitative severity", takes each group's score from a lookup table and interpolates within it.1 A one-metric change that moves a vector into another group can shift the score a long way: the race condition row moves from 2.3 to 5.3 when only AT changes.
Which CVSS 4.0 metrics change most from 3.1 for web findings?
Three changes affect web findings most. Attack Requirements is a new metric, User Interaction now has Passive and Active values, and separate impact metrics for the vulnerable system and subsequent systems replace Scope.
Attack Requirements (AT)
Attack Requirements (AT) captures "the prerequisite deployment and execution conditions or variables of the vulnerable system that enable the attack."1 The specification gives two cases for Present (AT:P). The first is a race: "A race condition must be won to successfully exploit the vulnerability." The second is network injection by an on-path attacker. FIRST's on-path example, CVE-2021-23846, shows the change from 3.1: it was AC:H in 3.1 and is AC:L/AT:P in 4.0, and its score went from 5.9 to 8.2.2
The test for AT:P is whether success depends on conditions the attacker does not control. For a race, the specification says success depends on "execution conditions that are not under full control of the attacker". An OTP brute force needs many attempts, but nothing outside the attacker's control decides whether it works, so we kept that row at AT:N. A finding that needs a non-default feature turned on is not AT:P either. The specification says that "if a specific configuration is required for an attack to succeed, the vulnerable system should be assessed assuming it is in that configuration." Scored as AT:P, the same OTP finding drops only to 9.1.
User Interaction: Passive or Active
CVSS 3.1 vectors used UI:R (Required) for any user interaction, and 4.0 splits it into Passive and Active. The specification's Passive examples include "a website that has been modified to display malicious content when the page is rendered (most stored XSS or CSRF)". Its Active examples include "submitting a specific string into a web application (e.g. reflected or self XSS)".1
CSRF can be either. The specification puts most CSRF under Passive, while FIRST's CSRF example, CVE-2023-5602, uses Active because the victim must click a link.2 Choose by delivery. A payload embedded in a page the victim visits anyway is UI:P and scores 5.3. A link the victim must click is UI:A and scores 5.1.
Vulnerable system and subsequent system
CVSS 4.0 drops the Scope metric. The specification says the property that 3.1 called Scope "is captured by the separation of impacts to the vulnerable system and to subsequent systems."1 For XSS, FIRST's examples document defines the vulnerable system as "the web application that allows attackers to pass unfiltered input to the subsequent system, a browser application on a targeted user’s system."2 That is why both XSS rows put the impact in SC and SI and leave VC, VI and VA at None. The stored XSS variant below is the exception. When the attacker can act as an admin inside the application, the impact lands on the application, so it moves to VC, VI and VA.
In the SSRF row, both systems carry impact. As in FIRST's CVE-2024-1233 example, the vulnerable application gets VI:L because the attacker can make it send arbitrary HTTP requests, and the internal services it reaches are the subsequent system. Some findings stay inside one application, such as IDOR, or SQL injection against the application's own database. For those, the specification says to "leave the subsequent system impact metrics as NONE (N)."
What raises or lowers each score
The base score follows the assumption, so a report should say which assumption it used. The table shows the common variants that testers meet, computed the same way.
| Finding | If instead | Metrics that change | CVSS-B |
|---|---|---|---|
| Stored XSS | The payload runs in an admin's session and the attacker acts as that admin | VC:H/VI:H/VA:H | 8.6 |
| SQL injection | Read-only extraction | VI:N/VA:N | 8.7 |
| SQL injection | Read-only and a login is needed | PR:L/VI:N/VA:N | 7.1 |
| IDOR | Only a few fields or records are exposed | VC:L | 5.3 |
| IDOR | Other users' records can also be changed | VI:H | 8.6 |
| SSRF | Read-only cloud credentials can be taken from the metadata service | SC:H | 7.7 |
| SSRF | Blind, with no response returned | SC:N | 6.9 |
| CSRF | The changed setting is the account email, which leads to takeover | VC:H/VI:H | 8.5 |
| Open redirect | It leaks an OAuth token that lets the attacker act as the victim | VC:H/VI:H | 8.5 |
| Path traversal | A login is needed | PR:L | 7.1 |
| Race condition | No race is needed, any repeat works | AT:N | 5.3 |
Two results stand out. Blind SSRF scores the same 6.9 as the version that returns responses. A verbose error page that leaks only stack traces and versions, scored VC:L with nothing else, also reaches 6.9 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N). With network access, no login and no user interaction, all 63 combinations of Low and None across the six impact metrics (with at least one Low) score 6.9.
CVSS-B assumes the worst Threat and Environmental values. The specification leaves those metrics to the organization that consumes the score, and they let that organization adjust the score to its own environment.
How Haxset can help
Haxset's AI SAST looks for finding types from the table, such as SQL injection, XSS, IDOR and SSRF, in source code. The AI PR Scanner runs the same kind of check on each pull request, and AI DAST tests running web applications. Haxset does not keep the prompts its AI models process and does not train models on them. It stores only scan metadata and scan results. To discuss your applications, contact us.
FAQ
What does CVSS-B mean?
CVSS-B is a CVSS 4.0 score computed from base metrics only. CVSS-BT adds Threat metrics, CVSS-BE adds Environmental metrics, and CVSS-BTE adds both. The specification says product maintainers and similar assessment providers typically publish only CVSS-B. Every score on this page is CVSS-B.
Is reflected XSS UI:A or UI:P in CVSS 4.0?
The specification lists reflected XSS under Active (UI:A), and FIRST's reflected XSS example uses Active because the targeted user must click a link. Stored XSS that runs when a user views a page during normal use is Passive (UI:P).
Are CVSS 4.0 scores higher than CVSS 3.1 scores?
Not in general. In FIRST's examples, reflected XSS fell from 6.1 to 5.1, CSRF rose from 4.3 to 5.1, and the on-path example rose from 5.9 to 8.2. Compare the vectors for each finding instead of expecting one direction.
Why does a vector with only low impacts still score Medium?
Network access with no login and no user interaction is the most exploitable case in CVSS 4.0, and the base score assumes active exploitation. Under those conditions, one Low confidentiality impact scores 6.9 (Medium). The Threat and Environmental metrics are where a lower real-world risk belongs.
Related research
- AI SAST and DAST: How LLM Agents Find Vulnerabilities
- AI Pull Request Security Scanning and Continuous Monitoring
References
-
FIRST, Common Vulnerability Scoring System version 4.0: Specification Document, document version 1.2, 18 June 2024 (first published 1 November 2023). ↩ ↩2 ↩3 ↩4 ↩5
-
FIRST, Common Vulnerability Scoring System v4.0: Examples, examples document, version 1.0 released 1 November 2023 and updated through May 2026. ↩ ↩2 ↩3 ↩4 ↩5 ↩6
Interested in how this research applies to your organization?
Get in touch
