feat: enrich findings with EPSS scores from FIRST.org - #1053
Merged
Conversation
New src/epss/client.ts: fetchEpssScores() batch-fetches EPSS scores from the FIRST.org API (https://api.first.org/data/v1/epss) for a list of CVE IDs. Returns a Map<string, EpssScore> keyed by uppercase CVE ID. Degrades gracefully (returns empty Map) on any network/parse failure. Filters out non-CVE IDs (GHSA-only findings) before calling the API. Added EpssScore type to src/types.ts and the optional epssScores field to Finding so the scanner can attach per-finding EPSS data. 11 unit tests in tests/epss.test.ts cover: empty input, GHSA-only filtering, correct parse, uppercase normalization, deduplication, non-200 status, network throws, malformed JSON, malformed epss values, and missing data array.
scanner.ts: after the OSV + remediation pass, call enrichWithEpssScores() to batch-fetch FIRST.org EPSS data for all CVE IDs in one HTTP request. Skipped in offline mode and when no CVE aliases are present. Failures degrade silently (empty map, no scan error). formatters.ts: serializeFinding() now includes epssScores (array or null) so the JSON output and HTML report data both carry EPSS automatically. printers.ts: verbose compact block shows the highest-EPSS score per finding, e.g. "EPSS: 97.6% exploitation probability - CVE-2021-44228 (top 0.03% of all CVEs)". html-reporter.ts: finding detail panel includes a new EPSS subheading with the same highest-score display when scores are available. The tooltip explains what EPSS measures.
sonukapoor
force-pushed
the
feature/epss-scores
branch
from
August 27, 2026 21:33
2a6768f to
6950322
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds EPSS (Exploit Prediction Scoring System) enrichment from FIRST.org to all findings. After the OSV pass, CVE aliases are batch-fetched in a single API call and each finding gets an
epssScoresarray with probability and percentile values.epssScoresarray per findingCloses #1052