# Dependency Vulnerability Triage

> Triages reported dependency vulnerabilities into what is actually exploitable in this codebase, what needs an upgrade now, and what can wait, with a reachabilit

- Skill: `bishnucd/dependency-vulnerability-triage` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishnucd/dependency-vulnerability-triage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishnucd/dependency-vulnerability-triage/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Bishnucd (https://skillmd.com/u/bishnucd)
- Updated: 2026-12-02
- Page: https://skillmd.com/skills/bishnucd/dependency-vulnerability-triage

---

---
name: dependency-vulnerability-triage
description: Triages reported dependency vulnerabilities into what is actually exploitable in this codebase, what needs an upgrade now, and what can wait, with a reachability check and a safe upgrade path. Use when a scanner produces a long CVE list, when an audit fails CI, or when deciding whether an advisory affects you.
license: MIT
metadata:
  author: community-list
  version: "1.0.0"
  created: "2026-11-22"
---

# Dependency Vulnerability Triage

A scanner reports that a vulnerable function exists in your dependency tree. It does not report
that your code calls it. Triage is the work of finding out.

## When to use

- A scanner or audit reports many vulnerabilities.
- CI fails on a security gate.
- A new advisory affects a package you use.
- Deciding between an urgent patch and a scheduled upgrade.

## Workflow

### 1. Establish the real inventory

- Generate an SBOM or a lockfile-derived tree with exact versions.
- Separate **direct** dependencies from **transitive** ones.
- Record whether each is runtime, build-time, or dev-only. A dev-only vulnerability is usually
  not a production risk, though it can be a supply-chain risk.

### 2. For each advisory, answer four questions

| Question | Why it matters |
|----------|----------------|
| Is the vulnerable version actually installed? | Advisories often cover a range you are outside |
| Is the vulnerable code path reachable? | An unused function is not an exploitable path |
| What does exploitation require? | Network access, a specific config, authenticated user, a malicious input |
| Is there a fix, and is it compatible? | An unfixable advisory needs a different response |

Reachability is the key step. A vulnerable XML parser in a transitive dependency that your code
never invokes is low priority; a vulnerable template engine called on every request is urgent.

### 3. Classify

| Priority | Criteria | Response |
|----------|----------|----------|
| P0 | Reachable, remotely exploitable, no auth, fix available | Patch now, out of band |
| P1 | Reachable, requires auth or a specific config | Patch this cycle |
| P2 | Not reachable but easy to make reachable later | Patch in the next scheduled upgrade |
| P3 | Dev-only, or the vulnerable path is unreachable and unlikely to change | Track, document |
| Accepted | No fix, compensating control in place | Record with owner and review date |

### 4. Verify reachability honestly

Ways to check, in order of strength:

1. Search your code for calls to the vulnerable function or its wrapper.
2. Use the dependency's own configuration to see whether the feature is enabled.
3. Run a reachability tool if one is available.
4. If you cannot determine it, classify as P1 rather than P3. Unknown is not safe.

Record the method used. "Not reachable" without evidence is a guess.

### 5. Plan the upgrade

- Prefer the smallest version bump that fixes it; avoid a major upgrade in an emergency unless
  required.
- Check the changelog for breaking changes between your version and the fix.
- If the fix requires a major bump, look for a backport, a patch via a package override, or a
  mitigation.
- Test: run the suite, plus a targeted test of the affected feature.

### 6. Record the decision

For every advisory: status, priority, evidence, action, owner, and date. A triage list that is not
written down is repeated next quarter.

## Rules

- Never mark a vulnerability "not exploitable" without stating how you determined it.
- Never pin to a fork of a package without recording the source and the maintenance plan.
- Never suppress an advisory in the scanner config to make CI pass; record an accepted risk with
  an owner instead.
- Never apply a major upgrade to production without running the test suite.
- Do not paste tokens, internal URLs, or private package registry credentials into a report.

## Output format

```markdown
# Dependency triage – <date>

## Inventory
<package manager, total deps, direct/transitive, runtime/dev>

## Triage
| Advisory | Package | Installed | Fixed in | Reachable? | Evidence | Priority | Action | Owner |

## Urgent actions
1. <package> <current> → <target>, reason, test plan

## Accepted risks
| Advisory | Why accepted | Compensating control | Review date |

## Scanner notes
<any advisory judged a false positive, with evidence>
```

## Error handling

| Condition | Action |
|-----------|--------|
| No lockfile or SBOM | Generate one from the package manager before triaging |
| Advisory covers a range with no fix | Look for a backport or mitigation; record as accepted with a review date |
| Package is unmaintained | Treat as a supply-chain risk; propose replacement, do not fork silently |
| Reachability cannot be determined | Classify P1 and say the evidence is missing |
| Scanner reports a vulnerability in a package not in the tree | Verify the scanner's data; mark as a false positive with the command output |

## Example

**Input:** 62 advisories from `npm audit`.
**Output:** 1 P0 (reachable template injection in a direct dependency), 4 P1, 11 P2, 38 P3
(dev-only or unreachable with evidence), 8 accepted with owners; and the exact upgrade path for
the P0 with a targeted test.

