Skip to content

Commit

Permalink
Optimize EPSS
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 committed Jan 21, 2025
1 parent 394ba41 commit e7edab3
Showing 1 changed file with 22 additions and 34 deletions.
56 changes: 22 additions & 34 deletions vulnerabilities/templates/vulnerability_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -503,60 +503,48 @@
</div>


{% for severity in severities %}
{% if severity.scoring_system == 'epss' %}
<div class="tab-div content" data-content="epss">
<div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1">
Exploit Prediction Scoring System
</div>
<table class="table vcio-table width-100-pct mt-2">
<div class="tab-div content" data-content="epss">
{% if epss_data %}
<div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1">
Exploit Prediction Scoring System (EPSS)
</div>
<table class="table vcio-table width-100-pct mt-2">
<tbody>
<tr>
<td class="two-col-left">
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="the percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score">
Percentile
data-tooltip="The percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score">
Percentile
</span>
</td>
<td class="two-col-right">{{ severity.scoring_elements }}</td>
<td class="two-col-right">{{ epss_data.percentile }}</td>
</tr>

<tr>
<td class="two-col-left">
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="the EPSS score representing the probability [0-1] of exploitation in the wild in the next 30 days (following score publication)">
EPSS score
data-tooltip="The EPSS score represents the probability [0-1] of exploitation in the wild in the next 30 days.">
EPSS Score
</span>
</td>
<td class="two-col-right">{{ severity.value }}</td>
<td class="two-col-right">{{ epss_data.score }}</td>
</tr>

{% if severity.published_at %}
{% if epss_data.published_at %}
<tr>
<td class="two-col-left">
<span
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="When was the time we fetched epss">
Published at
<span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
data-tooltip="Date when the EPSS score was published.">
Published At
</span>
</td>
<td class="two-col-right">{{ severity.published_at }}</td>
<td class="two-col-right">{{ epss_data.published_at }}</td>
</tr>
{% endif %}

{% endif %}
</tbody>
</table>
</table>
{% else %}
<p>No EPSS data available for this vulnerability.</p>
{% endif %}
</div>
{% endif %}
{% empty %}
<div class="tab-div content" data-content="epss">
<tr>
<td>
There are no EPSS available.
</td>
</tr>
</div>
{% endfor %}

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

0 comments on commit e7edab3

Please sign in to comment.