Dependency Health Triage
Turn a raw vulnerability-scanner dump into a short, ranked list of dependencies that actually need action.
Steps
- Produce the true dependency graph, direct and transitive, from the lockfile rather than the manifest; the manifest understates what ships.
- Run the scanners available on the host (
osv-scanner,trivy,npm audit,pip-audit) and merge results by package and version, deduplicating advisories that describe the same defect. - For each advisory, determine reachability: is the vulnerable symbol called, on which path, and with what input? An unreached CVE is inventory, not risk.
- Check exploitation preconditions the advisory assumes — a specific configuration, a parser mode, an exposed listener — against how this project actually uses the package.
- Rank surviving items with
review-severity-ladder, using intrinsic impact, not CVSS alone; CVSS is context-free and systematically overstates. - Assess maintenance health separately from vulnerabilities: release cadence, single-maintainer risk, unmaintained transitive pins, and packages whose upstream has been renamed or transferred.
- For each actionable item, name the fix — version bump, pin, patch, replace, or accept — and the compatibility risk of that fix.
- Record accepted risks explicitly with the reason and a revisit condition, so acceptance is a decision rather than a silence.
Acceptance
- Findings come from the lockfile graph, with transitive dependencies included.
- Every retained finding states its reachability and the calling path.
- Unreachable and precondition-unmet advisories are listed as suppressed, with the reason.
- Ranking uses intrinsic impact; raw CVSS is not the sole justification.
- Each action names the fix and its compatibility risk; accepted risks state a revisit condition.