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:
- Search your code for calls to the vulnerable function or its wrapper.
- Use the dependency's own configuration to see whether the feature is enabled.
- Run a reachability tool if one is available.
- 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
# 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.
1---2name: dependency-vulnerability-triage3description: Triages reported dependency vulnerabilities into what is actually exploitable in this codebase, what needs an upgrade now, and what can wait, with a reachabilit4---5---6name: dependency-vulnerability-triage7description: 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.8license: MIT9metadata:10 author: community-list11 version: "1.0.0"12 created: "2026-11-22"13---1415# Dependency Vulnerability Triage1617A scanner reports that a vulnerable function exists in your dependency tree. It does not report18that your code calls it. Triage is the work of finding out.1920## When to use2122- A scanner or audit reports many vulnerabilities.23- CI fails on a security gate.24- A new advisory affects a package you use.25- Deciding between an urgent patch and a scheduled upgrade.2627## Workflow2829### 1. Establish the real inventory3031- Generate an SBOM or a lockfile-derived tree with exact versions.32- Separate **direct** dependencies from **transitive** ones.33- Record whether each is runtime, build-time, or dev-only. A dev-only vulnerability is usually34 not a production risk, though it can be a supply-chain risk.3536### 2. For each advisory, answer four questions3738| Question | Why it matters |39|----------|----------------|40| Is the vulnerable version actually installed? | Advisories often cover a range you are outside |41| Is the vulnerable code path reachable? | An unused function is not an exploitable path |42| What does exploitation require? | Network access, a specific config, authenticated user, a malicious input |43| Is there a fix, and is it compatible? | An unfixable advisory needs a different response |4445Reachability is the key step. A vulnerable XML parser in a transitive dependency that your code46never invokes is low priority; a vulnerable template engine called on every request is urgent.4748### 3. Classify4950| Priority | Criteria | Response |51|----------|----------|----------|52| P0 | Reachable, remotely exploitable, no auth, fix available | Patch now, out of band |53| P1 | Reachable, requires auth or a specific config | Patch this cycle |54| P2 | Not reachable but easy to make reachable later | Patch in the next scheduled upgrade |55| P3 | Dev-only, or the vulnerable path is unreachable and unlikely to change | Track, document |56| Accepted | No fix, compensating control in place | Record with owner and review date |5758### 4. Verify reachability honestly5960Ways to check, in order of strength:61621. Search your code for calls to the vulnerable function or its wrapper.632. Use the dependency's own configuration to see whether the feature is enabled.643. Run a reachability tool if one is available.654. If you cannot determine it, classify as P1 rather than P3. Unknown is not safe.6667Record the method used. "Not reachable" without evidence is a guess.6869### 5. Plan the upgrade7071- Prefer the smallest version bump that fixes it; avoid a major upgrade in an emergency unless72 required.73- Check the changelog for breaking changes between your version and the fix.74- If the fix requires a major bump, look for a backport, a patch via a package override, or a75 mitigation.76- Test: run the suite, plus a targeted test of the affected feature.7778### 6. Record the decision7980For every advisory: status, priority, evidence, action, owner, and date. A triage list that is not81written down is repeated next quarter.8283## Rules8485- Never mark a vulnerability "not exploitable" without stating how you determined it.86- Never pin to a fork of a package without recording the source and the maintenance plan.87- Never suppress an advisory in the scanner config to make CI pass; record an accepted risk with88 an owner instead.89- Never apply a major upgrade to production without running the test suite.90- Do not paste tokens, internal URLs, or private package registry credentials into a report.9192## Output format9394```markdown95# Dependency triage – <date>9697## Inventory98<package manager, total deps, direct/transitive, runtime/dev>99100## Triage101| Advisory | Package | Installed | Fixed in | Reachable? | Evidence | Priority | Action | Owner |102103## Urgent actions1041. <package> <current> → <target>, reason, test plan105106## Accepted risks107| Advisory | Why accepted | Compensating control | Review date |108109## Scanner notes110<any advisory judged a false positive, with evidence>111```112113## Error handling114115| Condition | Action |116|-----------|--------|117| No lockfile or SBOM | Generate one from the package manager before triaging |118| Advisory covers a range with no fix | Look for a backport or mitigation; record as accepted with a review date |119| Package is unmaintained | Treat as a supply-chain risk; propose replacement, do not fork silently |120| Reachability cannot be determined | Classify P1 and say the evidence is missing |121| 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 |122123## Example124125**Input:** 62 advisories from `npm audit`.126**Output:** 1 P0 (reachable template injection in a direct dependency), 4 P1, 11 P2, 38 P3127(dev-only or unreachable with evidence), 8 accepted with owners; and the exact upgrade path for128the P0 with a targeted test.