Skip to content

Commit e7edab3

Browse files
committed
Optimize EPSS
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 394ba41 commit e7edab3

File tree

1 file changed

+22
-34
lines changed

1 file changed

+22
-34
lines changed

vulnerabilities/templates/vulnerability_details.html

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -503,60 +503,48 @@
503503
</div>
504504

505505

506-
{% for severity in severities %}
507-
{% if severity.scoring_system == 'epss' %}
508-
<div class="tab-div content" data-content="epss">
509-
<div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1">
510-
Exploit Prediction Scoring System
511-
</div>
512-
<table class="table vcio-table width-100-pct mt-2">
506+
<div class="tab-div content" data-content="epss">
507+
{% if epss_data %}
508+
<div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1">
509+
Exploit Prediction Scoring System (EPSS)
510+
</div>
511+
<table class="table vcio-table width-100-pct mt-2">
513512
<tbody>
514513
<tr>
515514
<td class="two-col-left">
516515
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
517-
data-tooltip="the percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score">
518-
Percentile
516+
data-tooltip="The percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score">
517+
Percentile
519518
</span>
520519
</td>
521-
<td class="two-col-right">{{ severity.scoring_elements }}</td>
520+
<td class="two-col-right">{{ epss_data.percentile }}</td>
522521
</tr>
523-
524522
<tr>
525523
<td class="two-col-left">
526524
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
527-
data-tooltip="the EPSS score representing the probability [0-1] of exploitation in the wild in the next 30 days (following score publication)">
528-
EPSS score
525+
data-tooltip="The EPSS score represents the probability [0-1] of exploitation in the wild in the next 30 days.">
526+
EPSS Score
529527
</span>
530528
</td>
531-
<td class="two-col-right">{{ severity.value }}</td>
529+
<td class="two-col-right">{{ epss_data.score }}</td>
532530
</tr>
533-
534-
{% if severity.published_at %}
531+
{% if epss_data.published_at %}
535532
<tr>
536533
<td class="two-col-left">
537-
<span
538-
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
539-
data-tooltip="When was the time we fetched epss">
540-
Published at
534+
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
535+
data-tooltip="Date when the EPSS score was published.">
536+
Published At
541537
</span>
542538
</td>
543-
<td class="two-col-right">{{ severity.published_at }}</td>
539+
<td class="two-col-right">{{ epss_data.published_at }}</td>
544540
</tr>
545-
{% endif %}
546-
541+
{% endif %}
547542
</tbody>
548-
</table>
543+
</table>
544+
{% else %}
545+
<p>No EPSS data available for this vulnerability.</p>
546+
{% endif %}
549547
</div>
550-
{% endif %}
551-
{% empty %}
552-
<div class="tab-div content" data-content="epss">
553-
<tr>
554-
<td>
555-
There are no EPSS available.
556-
</td>
557-
</tr>
558-
</div>
559-
{% endfor %}
560548

561549
<div class="tab-div content" data-content="history">
562550
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">

0 commit comments

Comments
 (0)