> For the complete documentation index, see [llms.txt](https://support.attackforge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.attackforge.com/app/getting-started/vulnerability-scoring-systems.md).

# Vulnerability Scoring Systems

## Overview <a href="#overview" id="overview"></a>

A vulnerability's priority decides how fast it gets fixed, and how it's reported. Scoring systems make that priority consistent and defensible, so it's based on a recognised method rather than one person's judgement.

AttackForge supports CVSS, DREAD, OWASP and custom scoring systems. You can use one, or several together.

Choose the scoring systems for each project, put them in order, and mark any that are required. Testers score each vulnerability, and each system suggests a priority, with the top system taking precedence. Testers can always set the priority by hand.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FNQ22rnpRx7lnUPIqv1vz%2Fscoring-systems-at-a-glance.svg?alt=media&amp;token=7b90a1d3-50e5-441f-b4fc-0595a6c61b59" alt=""><figcaption></figcaption></figure>

## Why use more than one scoring system <a href="#why-use-more-than-one-scoring-system" id="why-use-more-than-one-scoring-system"></a>

* **Different perspectives.** Each system looks at risk differently. CVSS rates technical severity, while OWASP and custom systems can take business impact into account.
* **Better prioritisation.** Seeing several scores together gives a fuller picture of the real risk.
* **The right score for each audience.** Use CVSS for technical teams, and a business risk rating for executives.
* **Less bias.** Combining methods reduces the weaknesses of any single one.
* **Flexibility.** Fit scoring to each customer, industry or compliance requirement.

Using several systems takes more effort from testers, so only add the ones you need. Mature programmes often use CVSS as their main system, and add others where they help.

## How scoring works <a href="#how-scoring-works" id="how-scoring-works"></a>

* **Administrators** set up scoring systems, including custom ones, and choose which systems each project uses.
* **Testers** score each vulnerability with the project's systems. AttackForge shows the priority from each system, and the tester chooses the most suitable one.
* **Manual scoring is always available.** Testers can always set the priority themselves. It can't be turned off.
* **Access controls** decide who can see how a vulnerability was scored.

## Who benefits <a href="#who-benefits" id="who-benefits"></a>

| Who                                | How                                                               |
| ---------------------------------- | ----------------------------------------------------------------- |
| **Testers**                        | Score consistently, with the priority worked out for them         |
| **QA reviewers**                   | See exactly how each priority was reached                         |
| **Clients and remediation owners** | Get priorities they can trust, explained in terms they understand |
| **Security and risk teams**        | Line priorities up with their own risk framework and appetite     |
| **Administrators**                 | Build scoring systems that match their organisation's risk method |

## Default scoring systems <a href="#default-scoring-systems" id="default-scoring-systems"></a>

These scoring systems are available out of the box:

| Scoring system                                                                                 | What it rates                                                               | Best for                                              |
| ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------- |
| [CVSS v3.1](https://www.first.org/cvss/calculator/3.1)                                         | Technical severity, as a score from 0 to 10                                 | The industry standard, and the most widely understood |
| [CVSS v4.0](https://www.first.org/cvss/calculator/4.0)                                         | Technical severity, using the latest version of CVSS                        | Teams moving to the current CVSS standard             |
| [DREAD Threat Model](https://satoricyber.com/glossary/threat-modeling-with-microsoft-dread/)   | Damage, reproducibility, exploitability, affected users and discoverability | Threat modelling, and simple, quick ratings           |
| [OWASP Risk Rating Methodology](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology) | Likelihood and impact, including business impact                            | Ratings that take business impact into account        |
| [Custom 4x4 Risk Scoring](https://en.wikipedia.org/wiki/Risk_matrix)                           | Probability and impact, on a 4x4 risk matrix                                | Matching an organisation's own risk matrix            |

DREAD, OWASP and 4x4 risk scoring are built as custom scoring systems, so you can see how they work and change them. See "Priority scripts for the default systems" below.&#x20;

## Create a custom scoring system <a href="#create-a-custom-scoring-system" id="create-a-custom-scoring-system"></a>

If your organisation has its own way of rating risk, build it as a custom scoring system, so testers use it consistently.

1. Go to **Administration > Vulnerabilities > Scoring**.
2. Click **Add Custom Scoring System**.
3. Fill in its details:

| Part                | What it's for                                                                                        |
| ------------------- | ---------------------------------------------------------------------------------------------------- |
| **Name**            | The scoring system's name                                                                            |
| **Key**             | A unique ID, used to refer to the scoring system in scripts and the APIs                             |
| **Info**            | An optional description                                                                              |
| **Form**            | The sections and fields testers fill in when scoring a vulnerability, and optionally when viewing it |
| **Priority script** | The script that works out the priority from the form                                                 |

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FAdyb2nLVkuHTzHMpe3qo%2FScreenshot%202026-11-06%20at%203.58.41%E2%80%AFpm.png?alt=media&amp;token=e17e84d0-9eea-4516-800d-1f0d13120417" alt=""><figcaption></figcaption></figure>

### Build the form <a href="#build-the-form" id="build-the-form"></a>

The form is made of **sections** and **fields**, in the same way as custom fields. For example, a DREAD form has one select field for each of its five factors. See [Custom fields and forms](https://support.attackforge.com/app/getting-started/custom-fields-and-forms).

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FQUBUQM4yBzfgtKRtwMPk%2FScreenshot%202026-11-06%20at%203.59.46%E2%80%AFpm.png?alt=media&amp;token=f9bbae06-4bb7-4256-8aef-8ea7e8f5019c" alt=""><figcaption></figcaption></figure>

### Write the priority script <a href="#write-the-priority-script" id="write-the-priority-script"></a>

The priority script is written in [AFScript](https://support.attackforge.com/app/afscript). It works out the vulnerability's priority, and can use:

* the fields in this scoring system's form
* other scoring systems on the project
* the vulnerability's fields and custom fields
* the writeup's fields
* the affected assets' fields
* the project's fields

The script must return exactly one of: `Critical`, `High`, `Medium`, `Low` or `Info`.

The form's fields are read from `vulnerability.scoring.custom.<scoring system key>.custom_fields`. For example, the 4x4 script reads `vulnerability.scoring.custom.custom_risk_scoring.custom_fields`.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2F8CbGicwX7VK6Oz5GaIJi%2FScreenshot%202026-11-06%20at%204.00.38%E2%80%AFpm.png?alt=media&amp;token=ea819c02-4b65-46e6-bcea-8200aa574f49" alt=""><figcaption></figcaption></figure>

## Add scoring systems to a project <a href="#add-scoring-systems-to-a-project" id="add-scoring-systems-to-a-project"></a>

Choose the scoring systems when you create or edit a project. A project can use as many as you need.

* **Required:** testers must score with this system.
* **Order:** put the systems in order, from top to bottom. This is the order testers see them in. It also decides which priority wins if two systems disagree: the system highest in the list takes precedence.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FIg5XAtjrKwbyvmrVVq3D%2FScreenshot%202026-11-06%20at%204.01.34%E2%80%AFpm.png?alt=media&amp;token=4bafcefa-08b8-450b-92aa-642818f000fd" alt=""><figcaption></figcaption></figure>

## Control who can see how vulnerabilities were scored <a href="#control-who-can-see-how-vulnerabilities-were-scored" id="control-who-can-see-how-vulnerabilities-were-scored"></a>

Each scoring system can have an **Access Level** and **Roles**. Together, they set the lowest project access level that can see how a vulnerability was scored with that system. For example, you might let testers see the full scoring, while clients only see the resulting priority.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FZcbTygrBovKgkds8C5z3%2FScreenshot%202026-11-06%20at%204.02.34%E2%80%AFpm.png?alt=media&amp;token=5669eda2-5054-466a-b225-1ce1f39ea659" alt=""><figcaption></figcaption></figure>

## Score a vulnerability <a href="#score-a-vulnerability" id="score-a-vulnerability"></a>

1. Open the vulnerability form. The project's scoring systems are shown, in order. Required systems have a red dot.
2. Fill in each scoring system's fields.
3. Check the priority. It updates as you score. AttackForge shows the priority from each system, and the system highest in the project's list takes precedence.
4. If you need to, change the priority yourself. Manual scoring is always available, and can't be turned off. AttackForge warns you if the priority you choose conflicts with the scores.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FSuxCTJZwuVjxho9vaVQj%2FScreenshot%202026-11-06%20at%204.05.44%E2%80%AFpm.png?alt=media&amp;token=c2b2565e-6794-40ab-a88c-a4f59d158ad2" alt=""><figcaption></figcaption></figure>

## Priority scripts for the default systems <a href="#priority-scripts-for-the-default-systems" id="priority-scripts-for-the-default-systems"></a>

### DREAD Threat Model <a href="#dread-threat-model" id="dread-threat-model"></a>

The form has five select fields, each scored from 1 to 10: `damage_potential`, `reproducibility`, `exploitability`, `affected_users` and `discoverability`. The script reads them from `vulnerability.scoring.custom.dread.custom_fields`, and adds them up, for a total from 5 to 50.

| Total         | Priority |
| ------------- | -------- |
| 1 to 10       | Low      |
| 11 to 24      | Medium   |
| 25 to 39      | High     |
| 40 to 50      | Critical |
| Anything else | Info     |

```javascript
const dread = vulnerability?.scoring?.custom?.dread?.custom_fields;
const damage_potential = dread?.damage_potential;
const reproducibility = dread?.reproducibility;
const exploitability = dread?.exploitability;
const affected_users = dread?.affected_users;
const discoverability = dread?.discoverability;

const score = Number.parseInt(damage_potential)
  + Number.parseInt(reproducibility)
  + Number.parseInt(exploitability)
  + Number.parseInt(affected_users)
  + Number.parseInt(discoverability);

if (score >= 1 && score <= 10) {
  return 'Low';
}
else if (score >= 11 && score <= 24) {
  return 'Medium';
}
else if (score >= 25 && score <= 39) {
  return 'High';
}
else if (score >= 40 && score <= 50) {
  return 'Critical';
}
else {
  return 'Info';
}
```

The final `return 'Info'` makes sure the script always returns a priority, even if a field is empty.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FSz0bDORRCDskRF41kuPc%2FScreenshot%202026-11-06%20at%204.06.54%E2%80%AFpm.png?alt=media&amp;token=8eee81c6-f343-4206-a27d-285678affb57" alt=""><figcaption></figcaption></figure>

### OWASP Risk Rating Methodology <a href="#owasp-risk-rating-methodology" id="owasp-risk-rating-methodology"></a>

The form has select fields scored from 0 to 9, grouped by the start of their key:

| Key starts with | Factor           |
| --------------- | ---------------- |
| `ta_`           | Threat agent     |
| `vf_`           | Vulnerability    |
| `ti_`           | Technical impact |
| `bi_`           | Business impact  |

The script works out:

* **Likelihood** = (threat agent + vulnerability factors) ÷ 8
* **Impact** = (technical impact + business impact factors) ÷ 8

Each is then rated **Low** (under 3), **Medium** (3 to under 6) or **High** (6 to 9), and the priority comes from this matrix:

| Impact ↓ / Likelihood → | Low    | Medium | High     |
| ----------------------- | ------ | ------ | -------- |
| **High**                | Medium | High   | Critical |
| **Medium**              | Low    | Medium | High     |
| **Low**                 | Info   | Low    | Medium   |

The script reads the form's fields from `vulnerability.scoring.custom.owasp_risk_rating_methodology.custom_fields`, and adds up each group of factors by the start of its key.

```javascript
const scoring = vulnerability.scoring.custom.owasp_risk_rating_methodology.custom_fields;
const entries = Object.entries(scoring);

let threat_agent_factor = 0;
let vulnerability_factor = 0;
let technical_impact_factor = 0;
let business_impact_factor = 0;

for (let x = 0; x < Array.length(entries); x++) {
  const key = entries[x][0];
  const value = Number.parseInt(entries[x][1]);
  
  if (String.startsWith(key, 'ta_')){
    threat_agent_factor = threat_agent_factor + value;
  }
  else if (String.startsWith(key, 'vf_')){
    vulnerability_factor = vulnerability_factor + value;
  }
  else if (String.startsWith(key, 'ti_')){
    technical_impact_factor = technical_impact_factor + value;
  }
  else if (String.startsWith(key, 'bi_')){
    business_impact_factor = business_impact_factor + value;
  }
}

const likelihood = ( threat_agent_factor + vulnerability_factor ) / 8;
const impact = ( technical_impact_factor + business_impact_factor ) / 8;

let likelihood_rating;
if (likelihood >= 0 && likelihood < 3) {
  likelihood_rating = 'Low';
}
else if (likelihood >= 3 && likelihood < 6) {
  likelihood_rating = 'Medium';
}
else if (likelihood >= 6 && likelihood <= 9) {
  likelihood_rating = 'High';
}

let impact_rating;
if (impact >= 0 && impact < 3) {
  impact_rating = 'Low';
}
else if (impact >= 3 && impact < 6) {
  impact_rating = 'Medium';
}
else if (impact >= 6 && impact <= 9) {
  impact_rating = 'High';
}

if (impact_rating === 'High' && likelihood_rating === 'Low') {
  return 'Medium';
}
else if (impact_rating === 'High' && likelihood_rating === 'Medium') {
  return 'High';
}
else if (impact_rating === 'High' && likelihood_rating === 'High') {
  return 'Critical';
}
else if (impact_rating === 'Medium' && likelihood_rating === 'Low') {
  return 'Low';
}
else if (impact_rating === 'Medium' && likelihood_rating === 'Medium') {
  return 'Medium';
}
else if (impact_rating === 'Medium' && likelihood_rating === 'High') {
  return 'High';
}
else if (impact_rating === 'Low' && likelihood_rating === 'Low') {
  return 'Info';
}
else if (impact_rating === 'Low' && likelihood_rating === 'Medium') {
  return 'Low';
}
else if (impact_rating === 'Low' && likelihood_rating === 'High') {
  return 'Medium';
}
else {
  return 'Info';
}
```

This script uses AFScript's namespace functions, such as `Array.length(entries)` and `String.startsWith(key, 'ta_')`, instead of JavaScript-style methods.

The final `return 'Info'` makes sure the script always returns a priority, even if a field is empty.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2Fdh2d378FUum7wioWh1sg%2FScreenshot%202026-11-06%20at%204.07.29%E2%80%AFpm.png?alt=media&amp;token=e1de9aa7-38bf-4318-b172-2154e0485c03" alt=""><figcaption></figcaption></figure>

### Custom 4x4 Risk Scoring <a href="#custom-4x4-risk-scoring" id="custom-4x4-risk-scoring"></a>

Based on a standard 4x4 risk matrix. The form has a `probability` field and an `impact` field, in the `custom_risk_scoring` section.

| Probability ↓ / Impact → | Low    | Medium | High     | Very High |
| ------------------------ | ------ | ------ | -------- | --------- |
| **Rare**                 | Low    | Low    | Low      | Medium    |
| **Unlikely**             | Low    | Medium | Medium   | High      |
| **Possible**             | Low    | Medium | High     | Critical  |
| **Probable**             | Medium | High   | Critical | Critical  |

```javascript
const scoring = vulnerability.scoring.custom.custom_risk_scoring.custom_fields;

const probability = scoring.probability;
const impact = scoring.impact;

if (probability === 'Rare' && impact === 'Low') {
  return 'Low';
}
else if (probability === 'Rare' && impact === 'Medium') {
  return 'Low';
}
else if (probability === 'Rare' && impact === 'High') {
  return 'Low';
}
else if (probability === 'Rare' && impact === 'Very High') {
  return 'Medium';
}
else if (probability === 'Unlikely' && impact === 'Low') {
  return 'Low';
}
else if (probability === 'Unlikely' && impact === 'Medium') {
  return 'Medium';
}
else if (probability === 'Unlikely' && impact === 'High') {
  return 'Medium';
}
else if (probability === 'Unlikely' && impact === 'Very High') {
  return 'High';
}
else if (probability === 'Possible' && impact === 'Low') {
  return 'Low';
}
else if (probability === 'Possible' && impact === 'Medium') {
  return 'Medium';
}
else if (probability === 'Possible' && impact === 'High') {
  return 'High';
}
else if (probability === 'Possible' && impact === 'Very High') {
  return 'Critical';
}
else if (probability === 'Probable' && impact === 'Low') {
  return 'Medium';
}
else if (probability === 'Probable' && impact === 'Medium') {
  return 'High';
}
else if (probability === 'Probable' && impact === 'High') {
  return 'Critical';
}
else if (probability === 'Probable' && impact === 'Very High') {
  return 'Critical';
}
else {
  return 'Info';
}
```

The final `return 'Info'` makes sure the script always returns a priority, even if a field is empty.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2F3ja1j397W5TZCWBkwreg%2FScreenshot%202026-11-06%20at%204.10.22%E2%80%AFpm.png?alt=media&amp;token=ae278638-00b1-4a6b-a3fc-1b658e2fc61e" alt=""><figcaption></figcaption></figure>

## Tips <a href="#tips" id="tips"></a>

* **Use CVSS as your main system** if you're not sure where to start. It's the most widely understood.
* **Only add the systems you need.** Each extra system is more work for testers.
* **Put your main system at the top of the project's list**, because it takes precedence when systems disagree.
* **Make a system Required** when every finding must be scored with it, for example for compliance.
* **End every priority script with a fallback**, such as `return 'Info'`, so it always returns a priority.
* **Use access controls** to decide whether clients see the full scoring or just the priority.

## FAQ <a href="#faq" id="faq"></a>

**Can I use more than one scoring system on a project?** Yes, as many as you need. AttackForge shows the priority from each one.

**What happens if two scoring systems give different priorities?** The system highest in the project's list takes precedence. The tester can still choose a different priority.

**Can testers set the priority themselves?** Yes. Manual scoring is always available, and can't be turned off. AttackForge warns if the chosen priority conflicts with the scores.

**What must a priority script return?** Exactly one of Critical, High, Medium, Low or Info.

**What can a priority script use?** The scoring form's fields, other scoring systems on the project, and the fields of the vulnerability, writeup, affected assets and project.

**Can clients see how a vulnerability was scored?** Only if their access level meets the scoring system's access settings.

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Custom fields and forms](https://support.attackforge.com/app/getting-started/custom-fields-and-forms)
* [Creating vulnerabilities](https://support.attackforge.com/app/getting-started/creating-vulnerabilities)
* [Creating and managing projects](https://support.attackforge.com/app/getting-started/creating-and-managing-projects)
* [AFScript](https://support.attackforge.com/app/afscript)
* [CVSS v4.0 calculator (FIRST)](https://www.first.org/cvss/calculator/4.0)
* [OWASP Risk Rating Methodology](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.attackforge.com/app/getting-started/vulnerability-scoring-systems.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
