Dependency Audit

VerifiedCaution

Analyzes project dependencies for known security vulnerabilities using npm audit, pip-audit, or similar tools across multiple package managers.

Sby Skills Guide Bot
SecurityIntermediate
3/1/2026
Claude CodeCursorWindsurfCopilotCodex
#dependencies#vulnerability-scanning#cve#npm#supply-chain

Recommended for

Automated summary

This skill walks through auditing a project's dependencies with npm audit, pip-audit, govulncheck, or bundle audit to surface known vulnerabilities and remediate them.

Strengths

  • Covers multiple ecosystems (npm, yarn, pip, Go, Ruby) with exact commands
  • Provides a CVSS-based severity triage table with clear remediation timelines
  • Explains tricky cases: transitive dependencies via overrides and missing patches
  • Ships a report template and CI/CD integration that fails on high-severity findings

Limitations

  • Relies only on audit-tool vulnerability databases, not on actual code analysis
  • Does not address secret management or license compliance
  • Automated npm audit fix can pull in untested breaking changes
When to use it

Use it when you need to check a project for CVEs, plan a security upgrade, or add an audit gate to CI.

When not to use it

Don't use it as a full application security review, which requires code review and penetration testing.

Security analysis

Caution
Quality score88/100

The skill is a legitimate dependency-auditing guide using standard package-manager tools. It does not contain destructive, exfiltrating, or obfuscated actions, but it does instruct agents to run commands that install packages and modify dependency trees, so it warrants caution rather than being fully safe.

Findings
  • •Runs package-manager commands that access the network and can modify dependencies, such as npm audit fix, pip install pip-audit, and bundle audit --update.
  • •Recommends npm audit fix --force, which can introduce breaking dependency changes.
  • •No allowed-tools are declared even though the skill provides executable bash commands.
How this analysis is made

Examples

Audit complet d'un projet Node
Audite les dépendances de ce projet Node.js, liste les vulnérabilités par sévérité et propose les commandes de correction.
Corriger une dépendance transitive
npm audit signale une faille dans une sous-dépendance de lodash. Montre-moi l'arbre de dépendances et comment forcer une version corrigée avec overrides.
Blocage en CI
Ajoute une étape GitHub Actions qui fait échouer le build si npm audit détecte des vulnérabilités de niveau high ou critical.

name: dependency-audit description: Analyzes project dependencies for known security vulnerabilities using npm audit, pip-audit, or similar tools. Use when auditing packages, checking for CVEs, or updating vulnerable dependencies.

Dependency Audit

Quick Start

Audit dependencies based on project type:

# Node.js
npm audit

# Python
pip-audit

# Go
govulncheck ./...

Instructions

Step 1: Identify Package Manager

Check for manifest files:

  • package.json / package-lock.json → npm/yarn
  • requirements.txt / pyproject.toml → pip
  • go.mod → Go modules
  • Cargo.toml → Cargo (Rust)
  • Gemfile → Bundler (Ruby)

Step 2: Run Audit

Node.js (npm):

npm audit
npm audit --json  # Machine-readable output

Node.js (yarn):

yarn audit
yarn audit --json

Python:

pip install pip-audit
pip-audit
pip-audit -r requirements.txt

Go:

govulncheck ./...

Ruby:

bundle audit check --update

Step 3: Analyze Results

Categorize by severity:

| Severity | CVSS | Action | |----------|------|--------| | Critical | 9.0+ | Update immediately | | High | 7.0-8.9 | Update within 24h | | Moderate | 4.0-6.9 | Update this sprint | | Low | < 4.0 | Update when convenient |

Step 4: Fix Vulnerabilities

npm - Auto-fix:

npm audit fix
npm audit fix --force  # Breaking changes allowed

npm - Manual update:

npm update vulnerable-package
# or specific version
npm install vulnerable-package@2.0.0

Python - Update package:

pip install --upgrade vulnerable-package
# or pin safe version in requirements.txt
vulnerable-package>=2.0.0

Step 5: Verify Fixes

Re-run audit to confirm:

npm audit  # Should show 0 vulnerabilities
pip-audit  # Should show no issues

Common Scenarios

Transitive Dependencies

When vulnerability is in a sub-dependency:

# Check dependency tree
npm ls vulnerable-package

# Force resolution (npm)
# Add to package.json:
{
  "overrides": {
    "vulnerable-package": "2.0.0"
  }
}

No Fix Available

When no patched version exists:

  1. Check if vulnerability affects your usage
  2. Consider alternative packages
  3. Implement workarounds if possible
  4. Monitor for updates

Breaking Changes

When fix requires major version bump:

  1. Review changelog for breaking changes
  2. Update code to accommodate changes
  3. Run tests thoroughly
  4. Consider gradual rollout

Report Format

## Dependency Audit Report

**Project:** my-app
**Date:** 2024-01-15
**Total Dependencies:** 245
**Vulnerabilities Found:** 3

### Critical (1)

**lodash** - Prototype Pollution
- Installed: 4.17.15
- Fixed in: 4.17.21
- CVE: CVE-2021-23337
- Fix: `npm install lodash@4.17.21`

### High (1)

**axios** - SSRF Vulnerability
- Installed: 0.21.0
- Fixed in: 0.21.2
- CVE: CVE-2021-3749
- Fix: `npm install axios@0.21.2`

### Moderate (1)

**minimist** - Prototype Pollution
- Installed: 1.2.5
- Fixed in: 1.2.6
- CVE: CVE-2021-44906
- Fix: `npm audit fix`

CI/CD Integration

GitHub Actions

- name: Audit dependencies
  run: |
    npm audit --audit-level=high
    # Fails if high or critical vulnerabilities found

Pre-commit

# package.json scripts
{
  "scripts": {
    "precommit": "npm audit --audit-level=moderate"
  }
}

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/dependency-audit-mm78noi6/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/dependency-audit-mm78noi6' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/dependency-audit-mm78noi6/download' --output '.skill-downloads/dependency-audit-mm78noi6/SKILL.md.part' && mv '.skill-downloads/dependency-audit-mm78noi6/SKILL.md.part' '.skill-downloads/dependency-audit-mm78noi6/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/dependency-audit-mm78noi6/SKILL.md' && test -s '.skill-downloads/dependency-audit-mm78noi6/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/dependency-audit' && cp -R '.skill-downloads/dependency-audit-mm78noi6' '.claude/skills/dependency-audit'

Cursor
test -f '.skill-downloads/dependency-audit-mm78noi6/SKILL.md' && test -s '.skill-downloads/dependency-audit-mm78noi6/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/dependency-audit' && cp -R '.skill-downloads/dependency-audit-mm78noi6' '.cursor/skills/dependency-audit'

Codex
test -f '.skill-downloads/dependency-audit-mm78noi6/SKILL.md' && test -s '.skill-downloads/dependency-audit-mm78noi6/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/dependency-audit' && cp -R '.skill-downloads/dependency-audit-mm78noi6' '.agents/skills/dependency-audit'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/dependency-audit-mm78noi6'

openskills read 'dependency-audit-mm78noi6'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/dependency-audit-mm78noi6/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills