# Dependency Vulnerability Review

> Reviews software composition analysis (SCA) findings for third-party dependencies and container images, groups them by package, identifies direct versus transitive paths, proposes minimal safe upgrade paths, and documents risk acceptance for what cannot be fixed yet. Use when an SCA, SBOM or container scan report needs to become an actionable upgrade plan, or before a release gate on known vulnerable components.

- Skill: `muratdincer/dependency-vulnerability-review` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add muratdincer/dependency-vulnerability-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/muratdincer/dependency-vulnerability-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- License: MIT
- Author: muratdincer (https://skillmd.com/u/muratdincer)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/muratdincer/dependency-vulnerability-review

---


# Review Dependency Vulnerabilities

## Purpose
Reduce a noisy list of dependency findings to a small set of upgrade actions and documented risk decisions, so that real exposure drops with the least change.

## When to use
- An SCA, SBOM or container image scan report is produced for an application.
- A release gate blocks on known vulnerable components (OWASP A06: Vulnerable and Outdated Components).
- The team plans periodic dependency hygiene work.

## When not to use
- A single high-profile CVE needs deep assessment. Use `vulnerability-triage`.
- The upgrade itself (code changes, breaking API migration) is being implemented. Use `dependency-upgrade`.
- The base image or Dockerfile structure is the concern. Use `dockerfile-review`.

## Inputs
Required:
- The SCA or scan report (package, version, CVE/advisory, severity, fixed version) for a named application.

Optional, improves quality:
- Lock files or dependency tree, SBOM (CycloneDX/SPDX).
- Runtime context: which packages are loaded in production, exposure, data sensitivity.
- Remediation SLAs, risk acceptance process, license policy.

If the report is missing, ask for it. If fixed versions are not in the report, mark them `[UNKNOWN]`; do not guess versions.

## Process
1. Normalize findings: deduplicate the same CVE across paths, group by package, and separate application dependencies from OS/base image packages.
2. Classify each package as direct or transitive and note the dependency path (A -> B -> vulnerable C).
3. Filter scope: dev/test-only dependencies, unused code paths and build-time tools get lower priority; state the evidence.
4. For each package find the minimal fixed version and whether it is a patch, minor or major upgrade; flag known breaking changes.
5. Prefer upstream fixes in this order: bump the direct dependency that pulls the fix, apply a version override/resolution for the transitive package, replace the package, patch or configure around it.
6. Prioritize using severity, known exploitation (KEV, EPSS if available), reachability and exposure; for top items, apply `vulnerability-triage` reasoning.
7. Bundle actions into upgrade batches by risk and blast radius, each with tests to run and rollback approach.
8. For findings that cannot be fixed now, write a risk acceptance: reason, compensating control, owner, expiry.
9. Note systemic improvements: automated update bots, lock file policy, base image refresh cadence, SBOM generation in the pipeline.
10. Label every reachability or exploitability judgement not backed by evidence as `[ASSUMPTION]`, then hand off: `vulnerability-triage` for findings that need deeper analysis, `dependency-upgrade` for the upgrade work, `security-finding-report` for accepted risks that must be documented.

## Output format
```markdown
# Dependency Vulnerability Review: <application> (<report date>)
## Summary
- Findings: <raw> -> <unique packages> · Critical/High after context: <n>
## Upgrade Plan
| Batch | Package | Current -> Target | Direct/Transitive | Fixes (CVE IDs) | Change type | Tests | Owner |
## Risk Acceptances
| Package / CVE | Reason | Compensating control | Owner | Expires |
## Deprioritized (with evidence)
- <package> – dev-only / not loaded / not reachable
## Systemic Improvements
- ...
## Open Questions
```

## Quality checklist
- [ ] Duplicates are merged and counts before/after are shown.
- [ ] Every target version comes from the report or advisory, not guessed.
- [ ] Transitive fixes use the smallest safe override and are noted for later cleanup.
- [ ] Every risk acceptance has an owner and expiry date.
- [ ] Deprioritized items have explicit evidence.
- [ ] Base image and OS packages are handled separately from application packages.
- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.

## Common pitfalls
- Upgrading everything to latest in one change. Batch by risk and test each batch.
- Ignoring findings because the package is transitive. Transitive code runs in production just the same.
- Permanent overrides that silently pin old versions. Track overrides and remove them when the parent updates.

## Example
Input: "Node.js API, 47 findings, 6 critical; 5 of the critical ones come from an old version of a JSON web token library pulled by the auth middleware."

Excerpt of output:
| 1 | auth middleware (direct) | 2.x -> fixed major [UNKNOWN: confirm version in advisory] | Direct | 5 critical CVEs via token library | Major | Auth integration tests | API lead |
| Risk acceptance | image processing lib CVE | Not reachable: only used by a disabled feature | Feature flag off + removal in next release | Tech lead | 30 days |

