Skip to content

feat: rank vulnerabilities by exploit risk (CISA KEV + FIRST EPSS) - #14

Open
AjayBThorat-20 wants to merge 1 commit into
feat/whole-tree-scan-and-whyfrom
feat/exploit-risk-ranking
Open

AjayBThorat-20 wants to merge 1 commit into
feat/whole-tree-scan-and-whyfrom
feat/exploit-risk-ranking

Conversation

@AjayBThorat-20

@AjayBThorat-20 AjayBThorat-20 commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

What and why

A CVSS score says how bad a vulnerability could be, not whether anyone is exploiting it.

  • Each CVE (or a GHSA advisory's CVE alias) is checked against CISA's Known Exploited Vulnerabilities catalog and scored with FIRST EPSS (probability of exploitation).
  • A known-exploited finding is tagged KNOWN EXPLOITED and goes first in Top Issues and in the deep report, ahead of a CRITICAL nobody is exploiting. EPSS orders findings within the same severity, never across one.
  • analyze --json findings carry metadata.knownExploited and metadata.epssScore.
  • The KEV catalog is downloaded whole and cached for 24h (the last copy is reused if CISA is unreachable), so nothing about the project goes to CISA. Only CVE ids go to EPSS. If either service fails, the scan completes without the ranking data. README FAQ and llms.txt list both services.
  • follow-redirects 1.16.1 → 1.16.2 (GHSA-mrwp-f3q8-3g9p, lockfile-only).

Stacked on #13.

Merging the stack: use Create a merge commit, not squash (squashing makes every later PR show these commits again). After merging the PR below this one, click Delete branch on it; GitHub then retargets this PR to main and CI runs.

How I tested it

  • npm run test:coverage on Node 24.21.0, clean npm ci, network disabled: 164/164 pass, 39.35% lines
  • npm audit --audit-level=high clean
  • Fixture with react-server-dom-webpack@19.0.0 (CVE-2025-55182) and systeminformation@5.0.0 (CVE-2021-21315), both on the live KEV list: both tagged and ranked first; before this change, minimist came second
  • Network off with a 3-day-old KEV cache: tags still shown

🤖 Generated with Claude Code

A CVSS score says how bad a vulnerability could be, not whether anyone
is exploiting it. Each CVE (or a GHSA advisory's CVE alias) is now
checked against CISA's Known Exploited Vulnerabilities catalog and
scored with FIRST's EPSS exploitation probability.

- Known-exploited findings are tagged KNOWN EXPLOITED and go first in
  Top Issues and in each section of the deep report, ahead of a
  CRITICAL nobody is exploiting. EPSS orders findings within the same
  severity, never across one.
- analyze --json findings carry metadata.knownExploited and
  metadata.epssScore.
- The KEV catalog is cached for 24h in ~/.devcompass/cache/; when CISA
  is unreachable the last copy is reused. Only CVE ids go to EPSS. If
  either service fails, the scan completes without the ranking data.
- README FAQ and llms.txt list the two new outbound services.
- follow-redirects 1.16.1 -> 1.16.2 (GHSA-mrwp-f3q8-3g9p, lockfile-only).

Tests stub every network call; the suite passes with networking
disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant