-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add CVSS4 support #12751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add CVSS4 support #12751
Changes from 25 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3250e7d
cvss4: model + parsers
valentijnscholten e638d06
cvss4: UI + rest tests + fixes
valentijnscholten 668275a
add cvssv4 to forms, fix test
valentijnscholten 1aca925
add cvssv4 to forms, fix test
valentijnscholten 93a508c
simplify test_metrics_queries
valentijnscholten f8585b4
add cvssv4 to forms, fix test
valentijnscholten 6626cc8
update how to write a parser guide
valentijnscholten 517b9e7
fix one more test
valentijnscholten 2f17e7f
cvss4: add links to extnernal calculators
valentijnscholten f35985b
cvss4: add links to extnernal calculators
valentijnscholten 3e188c1
fix one more test
valentijnscholten 636a170
fix one more test
valentijnscholten 1120ed3
fix one more test
valentijnscholten 3362964
fix and add tests
valentijnscholten 3c6de89
show CVSS vector together in tooltip
valentijnscholten 6bee447
cleanup maxDiff
valentijnscholten 8eb26a9
fix tests
valentijnscholten 56eb50c
update model help_text and verbose_name
valentijnscholten 5fd7f6d
fix tests
valentijnscholten e3732ef
fix migration
valentijnscholten f1eb700
fix tests
valentijnscholten 4bd6934
allow toggling of CVSS fields
valentijnscholten 7c2aad3
revert back to overriding the score field always
valentijnscholten 4a16904
fix tests
valentijnscholten 4392f1d
fix tests
valentijnscholten d67ee52
Update docs/content/en/open_source/contributing/how-to-write-a-parser.md
Maffooch c5116c1
Update dojo/forms.py
valentijnscholten 0330a55
Update dojo/forms.py
valentijnscholten 31aca16
Update dojo/models.py
valentijnscholten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
dojo/db_migrations/0234_finding_cvssv4_finding_cvssv4_score.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Generated by Django 5.1.8 on 2025-07-08 17:21 | ||
|
||
import django.core.validators | ||
import dojo.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('dojo', '0233_remove_test_actual_time_remove_test_estimated_time'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='finding', | ||
name='cvssv3', | ||
field=models.TextField(help_text='Common Vulnerability Scoring System version 3 (CVSS3) score associated with this finding.', max_length=117, null=True, validators=[dojo.validators.cvss3_validator], verbose_name='CVSS3 Vector'), | ||
), | ||
migrations.AlterField( | ||
model_name='finding', | ||
name='cvssv3_score', | ||
field=models.FloatField(blank=True, help_text='Numerical CVSSv3 score for the vulnerability. If the vector is given, the score is updated while saving the finding. The value must be between 0-10.', null=True, validators=[django.core.validators.MinValueValidator(0.0), django.core.validators.MaxValueValidator(10.0)], verbose_name='CVSS3 Score'), | ||
), | ||
migrations.AddField( | ||
model_name='finding', | ||
name='cvssv4', | ||
field=models.TextField(help_text='Common Vulnerability Scoring System version 4 (CVSS4) score associated with this finding.', max_length=255, null=True, validators=[dojo.validators.cvss4_validator], verbose_name='CVSS4 vector'), | ||
), | ||
migrations.AddField( | ||
model_name='finding', | ||
name='cvssv4_score', | ||
field=models.FloatField(blank=True, help_text='Numerical CVSSv4 score for the vulnerability. If the vector is given, the score is updated while saving the finding. The value must be between 0-10.', null=True, validators=[django.core.validators.MinValueValidator(0.0), django.core.validators.MaxValueValidator(10.0)], verbose_name='CVSSv4 Score'), | ||
), | ||
migrations.AddField( | ||
model_name='system_settings', | ||
name='enable_cvss3_display', | ||
field=models.BooleanField(blank=False, default=True, help_text='With this setting turned off, CVSS3 fields will be hidden in the user interface.', verbose_name='Enable CVSS3 Display'), | ||
), | ||
migrations.AddField( | ||
model_name='system_settings', | ||
name='enable_cvss4_display', | ||
field=models.BooleanField(blank=False, default=True, help_text='With this setting turned off, CVSS4 fields will be hidden in the user interface.', verbose_name='Enable CVSS4 Display'), | ||
), | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.