From e7edab3bf914a5f1e46d89f82d83d2cf00539e60 Mon Sep 17 00:00:00 2001 From: Tushar Goel Date: Tue, 21 Jan 2025 13:48:28 +0530 Subject: [PATCH] Optimize EPSS Signed-off-by: Tushar Goel --- .../templates/vulnerability_details.html | 56 ++++++++----------- 1 file changed, 22 insertions(+), 34 deletions(-) diff --git a/vulnerabilities/templates/vulnerability_details.html b/vulnerabilities/templates/vulnerability_details.html index 1d210b793..7001c8f3b 100644 --- a/vulnerabilities/templates/vulnerability_details.html +++ b/vulnerabilities/templates/vulnerability_details.html @@ -503,60 +503,48 @@ - {% for severity in severities %} - {% if severity.scoring_system == 'epss' %} -
-
- Exploit Prediction Scoring System -
- +
+ {% if epss_data %} +
+ Exploit Prediction Scoring System (EPSS) +
+
- + - - + - - {% if severity.published_at %} + {% if epss_data.published_at %} - + - {% endif %} - + {% endif %} -
- Percentile + data-tooltip="The percentile of the current score, the proportion of all scored vulnerabilities with the same or a lower EPSS score"> + Percentile {{ severity.scoring_elements }}{{ epss_data.percentile }}
- EPSS score + data-tooltip="The EPSS score represents the probability [0-1] of exploitation in the wild in the next 30 days."> + EPSS Score {{ severity.value }}{{ epss_data.score }}
- - Published at + + Published At {{ severity.published_at }}{{ epss_data.published_at }}
+ + {% else %} +

No EPSS data available for this vulnerability.

+ {% endif %}
- {% endif %} - {% empty %} -
- - - There are no EPSS available. - - -
- {% endfor %}