/cve-search:cve-auditfrom cve-search
Scan project dependencies for known vulnerabilities. Automatically detect and parse package files (package.json, requirements.txt, Gemfile, go.mod, pom.xml) and check all dependencies against the CVE database. Use when you want to audit a project for security vulnerabilities, check if dependencies have known CVEs, or generate a vulnerability report for compliance.
Ships in cve-search. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Automatically scan your project's dependencies and identify known Common Vulnerabilities and Exposures (CVEs). Supports Node.js, Python, Ruby, Go, and Maven projects.
# Scan current directory
npx tsx scripts/audit.ts
# Scan specific directory
npx tsx scripts/audit.ts /path/to/project
# Only show critical vulnerabilities
npx tsx scripts/audit.ts --severity critical
# Get fresh data (bypass cache)
npx tsx scripts/audit.ts --no-cache
# Output as JSON
npx tsx scripts/audit.ts --json
Run from the cve-search plugin directory: ~/.claude/plugins/cache/cve-search/
npx tsx scripts/audit.ts [directory] [options]
| Option | Description |
|---|---|
[directory] | Directory to scan (default: current directory) |
--severity <level> | Filter by severity: critical, high, medium, low |
--no-cache | Bypass cache and fetch fresh data |
--json | Output results as JSON |
--help | Show help message |
The skill automatically detects and parses dependency files from multiple ecosystems:
package.jsondependencies, devDependencies, peerDependencies"express": "^4.18.0"requirements.txtdjango==3.2.10 or requests>=2.25.0Gemfilegem 'rails', '~> 6.1.0'go.modrequire github.com/user/repo v1.2.3pom.xml<artifactId>log4j-core</artifactId>🔍 Scanning for dependencies in /home/user/myproject...
Found dependency files: package.json, requirements.txt
Scanning 45 dependencies for CVEs...
📊 Audit Results
Total vulnerabilities found: 8
🔴 Critical: 1 | 🟠 High: 2 | 🟡 Medium: 4 | 🔵 Low: 1
Showing 3 critical/high vulnerabilities:
📦 [email protected] - 2 vulnerability(ies)
🔴 CVE-2024-1234
Score: 9.2 | Buffer overflow in request parsing
🟠 CVE-2024-5678
Score: 7.1 | Path traversal in static file handling
─────────────────────────────────────────────────────────────
🐍 [email protected] - 1 vulnerability(ies)
🟠 CVE-2024-9999
Score: 7.5 | SQL injection in ORM query handling
─────────────────────────────────────────────────────────────
⚠️ Recommendations:
1. Update dependencies to patched versions
2. Review CVE details at https://cve.mitre.org/
3. Use --no-cache for latest vulnerability data
npx tsx scripts/audit.ts --json
Returns structured data:
{
"dependencies": [
{
"name": "express",
"version": "4.18.0",
"source": "npm",
"file": "/path/to/package.json"
}
],
"vulnerabilities": [
{
"cveId": "CVE-2024-1234",
"dependency": { "name": "express", "version": "4.18.0", ... },
"severity": "CRITICAL",
"score": 9.2,
"summary": "Buffer overflow in request parsing",
"affectsVersion": true
}
],
"summary": {
"total": 8,
"critical": 1,
"high": 2,
"medium": 4,
"low": 1
}
}
Verify your production dependencies are safe:
npx tsx scripts/audit.ts /app/backend --severity critical
Regular checks to catch newly discovered vulnerabilities:
npx tsx scripts/audit.ts . --no-cache
Export vulnerability data for security reviews:
npx tsx scripts/audit.ts . --json > vulnerability-report.json
Alert on only the most severe vulnerabilities:
npx tsx scripts/audit.ts . --severity critical --json
Audit multiple projects in a monorepo:
npx tsx scripts/audit.ts services/auth
npx tsx scripts/audit.ts services/api
npx tsx scripts/audit.ts services/web
| Level | CVSS Range | Icon | Meaning |
|---|---|---|---|
| CRITICAL | 9.0-10.0 | 🔴 | Immediate patching required |
| HIGH | 7.0-8.9 | 🟠 | Schedule patching soon |
| MEDIUM | 4.0-6.9 | 🟡 | Monitor and plan updates |
| LOW | 0.1-3.9 | 🔵 | Low risk, update when convenient |
| UNKNOWN | N/A | ⚪ | Unable to determine severity |
Results are cached for 24 hours by default. CVE information doesn't change frequently, so caching improves performance.
Use --no-cache when:
| Code | Meaning |
|---|---|
0 | Success (no vulnerabilities found or filtered) |
1 | Vulnerabilities found (or error occurred) |
cd ~/myapp
npx tsx scripts/audit.ts
# Scans package.json and devDependencies
cd ~/myproject
npx tsx scripts/audit.ts . --severity high
# Scans requirements.txt, shows only HIGH and CRITICAL
npx tsx scripts/audit.ts /path/to/go/project --no-cache
# Scans go.mod with latest CVE data
npx tsx scripts/audit.ts --json > audit-report.json
# Machine-readable format for parsing/integration
# Fail if any critical vulnerabilities found
npx tsx scripts/audit.ts --severity critical
if [ $? -ne 0 ]; then
echo "Critical vulnerabilities detected!"
exit 1
fi
package.json (Node.js)requirements.txt (Python)Gemfile (Ruby)go.mod (Go)pom.xml (Maven)cve-lookup skill--no-cache to check latest databaseWhat SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub mearman/marketplace --plugin cve-searchOther plugins' skills for the same job