Dependency Audit
Intro
Third-party dependencies are the largest part of most codebases'
attack surface. A dependency audit runs the ecosystem's vulnerability
scanner, triages findings by severity, and produces a concrete update
plan.
Overview
Run the right tool
Each ecosystem ships its own audit command:
| Ecosystem |
Audit command |
Outdated check |
| Rust |
cargo audit |
cargo outdated |
| Python |
pip-audit or safety check |
pip list --outdated |
| Node.js |
npm audit or pnpm audit |
npm outdated |
| Go |
govulncheck ./... |
go list -u -m all |
Install the tool if it's missing (e.g. cargo install cargo-audit),
then run it from the project root with the lockfile present.
Triage by severity
- Critical / High — fix immediately. Update or replace the
dependency before merging anything else.
- Medium — schedule a fix within the current sprint.
- Low — track and address when convenient.
For each finding, check whether a patched version exists, whether the
vulnerable code path is actually reached, and whether a workaround
(config, version pin) buys time.
Update strategy
- Update one dependency at a time so breakage is easy to attribute.
- Run the full test suite after each update.
- Read changelogs before any major version bump.
- Use lockfiles to pin exact versions across environments.
Ongoing maintenance
- Schedule monthly dependency reviews on the calendar.
- Enable Dependabot, Renovate, or equivalent for automated update PRs.
- Document any deliberately pinned versions inline with the reason.
Gotchas
Agent-specific failure modes — provider-neutral pause-and-self-check items:
- Running the audit once and never repeating it. Vulnerabilities are added to advisory databases daily. A clean audit today may have critical findings tomorrow. Schedule monthly audits and integrate the scanner into CI.
- Conflating audit with outdated check. The vulnerability scanner (
cargo audit, npm audit) catches known CVEs in current versions. The outdated checker (cargo outdated, npm outdated) flags stale packages. They answer different questions and should both run.
- Auto-merging Dependabot PRs without running tests. A Dependabot PR can introduce a breaking API change even in a patch bump. Require CI to pass and spot-check major bumps manually before merging.
- Treating "0 vulnerabilities" as proof of security. Known-CVE scans miss typosquatting, abandoned maintainers, license risks, and malicious updates. A clean audit is a necessary condition, not a sufficient one.
- Suppressing findings without documenting the reason. Future auditors cannot tell whether a suppressed advisory was intentional or forgotten. Every ignore rule needs a rationale and an expiry date.
- Batching many dependency updates into one PR. When a multi-update PR breaks something, you cannot attribute the breakage to the specific dependency. Update one dependency at a time, run the tests, then merge.
- Treating a major version bump the same as a patch bump. Major bumps require changelog review for breaking changes before merging. A quick major-bump merge is how silent regressions reach production.
Full reference
What "audit" actually checks
Audit tools cross-reference the lockfile against vulnerability
databases (RustSec, OSV, GitHub Advisory, npm advisory). They report
direct and transitive dependencies, but they only catch known
vulnerabilities — a clean audit is not the same as a secure
dependency tree.
When the fix isn't trivial
- No patched version exists. Pin the current version, file an
upstream issue, and look for an alternative library. Document the
acceptance in the lockfile or a
SECURITY.md exception list.
- Patched version is a major bump. Branch off, run the upgrade in
isolation, and address breaking changes before merging.
- Vulnerability is in a transitive dep. Force-resolve the
transitive version (npm
overrides, pnpm overrides, Cargo
[patch], pip constraints) until the parent dependency catches up.
- The vulnerable code path is unreachable in your usage. Note the
rationale alongside the suppression. Do not silently ignore.
Anti-patterns
- Running the audit once and never again.
- Bumping a dozen dependencies in a single PR.
- Suppressing findings without writing down the reason.
- Trusting "0 vulnerabilities" as proof of security — supply-chain
risk extends beyond known CVEs (typosquats, malicious updates,
abandoned maintainers).
- Auto-merging Dependabot PRs without running tests.
Output expectations
A useful audit summary identifies the package manager, lists each
vulnerable dependency with its severity and recommended fix, calls
out anything without a maintained alternative, and proposes a single
ordered update sequence.
1---2name: dependency-audit3description: |4 Audit project dependencies for vulnerabilities and outdated packages. Use when checking the security posture of dependencies, planning updates, or running a pre-release dependency review.5metadata:6 source: https://skillmd.com/skills/projectious-work/dependency-audit7 processkit:8 apiVersion: processkit.projectious.work/v19 id: SKILL-dependency-audit10 version: "1.1.0"11 created: 2026-04-06T00:00:00Z12 category: engineering13---1415# Dependency Audit1617## Intro1819Third-party dependencies are the largest part of most codebases'20attack surface. A dependency audit runs the ecosystem's vulnerability21scanner, triages findings by severity, and produces a concrete update22plan.2324## Overview2526### Run the right tool2728Each ecosystem ships its own audit command:2930| Ecosystem | Audit command | Outdated check |31|-----------|-------------------------------------|-------------------------|32| Rust | `cargo audit` | `cargo outdated` |33| Python | `pip-audit` or `safety check` | `pip list --outdated` |34| Node.js | `npm audit` or `pnpm audit` | `npm outdated` |35| Go | `govulncheck ./...` | `go list -u -m all` |3637Install the tool if it's missing (e.g. `cargo install cargo-audit`),38then run it from the project root with the lockfile present.3940### Triage by severity4142- **Critical / High** — fix immediately. Update or replace the43 dependency before merging anything else.44- **Medium** — schedule a fix within the current sprint.45- **Low** — track and address when convenient.4647For each finding, check whether a patched version exists, whether the48vulnerable code path is actually reached, and whether a workaround49(config, version pin) buys time.5051### Update strategy5253- Update one dependency at a time so breakage is easy to attribute.54- Run the full test suite after each update.55- Read changelogs before any major version bump.56- Use lockfiles to pin exact versions across environments.5758### Ongoing maintenance5960- Schedule monthly dependency reviews on the calendar.61- Enable Dependabot, Renovate, or equivalent for automated update PRs.62- Document any deliberately pinned versions inline with the reason.6364## Gotchas6566Agent-specific failure modes — provider-neutral pause-and-self-check items:6768- **Running the audit once and never repeating it.** Vulnerabilities are added to advisory databases daily. A clean audit today may have critical findings tomorrow. Schedule monthly audits and integrate the scanner into CI.69- **Conflating audit with outdated check.** The vulnerability scanner (`cargo audit`, `npm audit`) catches known CVEs in current versions. The outdated checker (`cargo outdated`, `npm outdated`) flags stale packages. They answer different questions and should both run.70- **Auto-merging Dependabot PRs without running tests.** A Dependabot PR can introduce a breaking API change even in a patch bump. Require CI to pass and spot-check major bumps manually before merging.71- **Treating "0 vulnerabilities" as proof of security.** Known-CVE scans miss typosquatting, abandoned maintainers, license risks, and malicious updates. A clean audit is a necessary condition, not a sufficient one.72- **Suppressing findings without documenting the reason.** Future auditors cannot tell whether a suppressed advisory was intentional or forgotten. Every ignore rule needs a rationale and an expiry date.73- **Batching many dependency updates into one PR.** When a multi-update PR breaks something, you cannot attribute the breakage to the specific dependency. Update one dependency at a time, run the tests, then merge.74- **Treating a major version bump the same as a patch bump.** Major bumps require changelog review for breaking changes before merging. A quick major-bump merge is how silent regressions reach production.7576## Full reference7778### What "audit" actually checks7980Audit tools cross-reference the lockfile against vulnerability81databases (RustSec, OSV, GitHub Advisory, npm advisory). They report82direct and transitive dependencies, but they only catch known83vulnerabilities — a clean audit is not the same as a secure84dependency tree.8586### When the fix isn't trivial8788- **No patched version exists.** Pin the current version, file an89 upstream issue, and look for an alternative library. Document the90 acceptance in the lockfile or a `SECURITY.md` exception list.91- **Patched version is a major bump.** Branch off, run the upgrade in92 isolation, and address breaking changes before merging.93- **Vulnerability is in a transitive dep.** Force-resolve the94 transitive version (npm `overrides`, pnpm `overrides`, Cargo95 `[patch]`, pip constraints) until the parent dependency catches up.96- **The vulnerable code path is unreachable in your usage.** Note the97 rationale alongside the suppression. Do not silently ignore.9899### Anti-patterns100101- Running the audit once and never again.102- Bumping a dozen dependencies in a single PR.103- Suppressing findings without writing down the reason.104- Trusting "0 vulnerabilities" as proof of security — supply-chain105 risk extends beyond known CVEs (typosquats, malicious updates,106 abandoned maintainers).107- Auto-merging Dependabot PRs without running tests.108109### Output expectations110111A useful audit summary identifies the package manager, lists each112vulnerable dependency with its severity and recommended fix, calls113out anything without a maintained alternative, and proposes a single114ordered update sequence.