Skip to content

Commit d0791ee

Browse files
committed
add ssvc_trees field
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 29510b0 commit d0791ee

4 files changed

Lines changed: 25 additions & 1 deletion

File tree

docs/reference-vulnerability-management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ vulnerabilities. Each field captures specific aspects of a vulnerability, enabli
118118
accurate assessment and management. Below is a description of the key fields:
119119

120120
- **advisory_id**:
121-
A unique identifier for the vulnerability. For example, **"VCID-2024-0001"**.
121+
A unique identifier for the vulnerability. For example, **"PYSEC-2020-2233"**.
122122

123123
- **resource_url**:
124124
The URL of the data source providing details about the vulnerability.

vulnerabilities/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class Meta:
4646
"risk_score",
4747
"risk_level",
4848
"fixed_packages",
49+
"ssvc_trees",
4950
"affected_packages",
5051
"affected_products",
5152
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 6.0.6 on 2026-06-15 12:28
2+
3+
import dje.fields
4+
from django.db import migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('vulnerabilities', '0008_purge_and_add_advisory_fields'),
11+
]
12+
13+
operations = [
14+
migrations.AddField(
15+
model_name='vulnerability',
16+
name='ssvc_trees',
17+
field=dje.fields.JSONListField(blank=True, default=list, help_text='A list of SSVC decision trees for this vulnerability.'),
18+
),
19+
]

vulnerabilities/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ class Vulnerability(HistoryDateFieldsMixin, DataspacedModel):
130130
output_field=models.IntegerField(),
131131
db_persist=True,
132132
)
133+
ssvc_trees = JSONListField(
134+
blank=True,
135+
help_text=_("A list of SSVC decision trees for this vulnerability."),
136+
)
133137
EXPLOITABILITY_CHOICES = [
134138
(0.5, _("No exploits known")),
135139
(1.0, _("Potential exploits")),

0 commit comments

Comments
 (0)