Skip to content

Commit 34cbe9d

Browse files
authored
Merge pull request #2 from softrams/epss
Update to show % value
2 parents 325457a + 8525035 commit 34cbe9d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bin/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ async function audit(
133133
console.log(` No EPSS score found for CVE ${cveID}\n`);
134134
} else {
135135
const { epss, percentile } = epssScores[cveID];
136-
console.log(`\n EPSS score is : ${epss} (${percentile}%)\n`);
136+
console.log(
137+
`\n EPSS score (probability of exploitation) : ${+Number(
138+
epss * 100.0
139+
).toFixed(3)}% \n`
140+
);
137141

138142
// If EPSS score is above threshold, fail the audit
139143
if (Number(threshold) > 0.0 && parseFloat(epss) > threshold) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cve-risk-scores",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "Check risk scores for CVEs",
55
"main": "bin/index.js",
66
"bin": {

0 commit comments

Comments
 (0)