Repository navigation
Usage
dep-vet npm express@5.3.0
dep-vet pypi requests==2.31.0
dep-vet crates serde@1.0.229
dep-vet go github.com/gin-gonic/gin@v1.9.1
dep-vet jsr @std/assert@1.0.19
dep-vet gem rack@3.2.9
dep-vet nuget Newtonsoft.Json@13.0.3
dep-vet maven org.slf4j:slf4j-api@2.0.17
dep-vet composer monolog/monolog@3.13.0Add --json for machine output. A near package-lock.json joins the
typosquat comparison; --no-local ignores it. --no-cache bypasses the HTTP
cache. --config path selects a .depvet.toml.
dep-vet audit package-lock.json
dep-vet audit Cargo.lock
dep-vet audit uv.lock
dep-vet audit Gemfile.lock
dep-vet audit maven-tree.txtaudit checks every installed package and reports the worst verdict. lock
checks only packages a change adds:
dep-vet lock package-lock.json --base origin/mainwatch re-audits on save.
Supported inputs: package-lock.json v2/v3, bun.lock, pnpm-lock.yaml
(v5/v6/v9), yarn.lock (classic/Berry), deno.lock, requirements*.txt,
Pipfile.lock, poetry.lock, uv.lock, Cargo.lock, go.mod,
Gemfile.lock, packages.lock.json, packages.config, composer.lock,
gradle.lockfile, and maven-tree.txt from
mvn dependency:tree -DoutputFile=maven-tree.txt.
Anything that cannot be resolved becomes an incomplete result (exit 3), not a
silent skip: unpinned pip lines, git/URL sources, a v1 npm lockfile, a malformed
Maven line.
dep-vet plan npm express@5
dep-vet plan maven org.springframework.boot:spring-boot-starter-web@3.2.0
dep-vet plan maven ./pom.xml
dep-vet tree package-lock.jsonnpm ranges resolve from packuments. Maven resolves POMs with parent chains,
child-wins properties, classifiers, exclusions, dependencyManagement,
imported BOMs, and nearest-definition mediation. Profiles are never evaluated;
ranges, LATEST/RELEASE, missing POMs, and local-only reactor parents are
reported as unresolved. tree is offline and reads only package-lock.json
v2/v3.
dep-vet inspect npm lodash@4.17.20
dep-vet inspect pypi flask==2.0.0
dep-vet inspect maven org.slf4j:slf4j-api@2.0.17
dep-vet diff npm lodash@4.17.20 lodash@4.17.21inspect downloads the archive, verifies its checksum, extracts in memory, and
scans source text. Nothing is executed or written to disk. diff compares two
exact versions by publisher, provenance, declared dependencies, integrity, and
new or resolved advisories.
dep-vet npm express --json
dep-vet audit package-lock.json --format sarif -o results.sarif
dep-vet sbom package-lock.json --format cyclonedx
dep-vet sbom package-lock.json --format spdx -o sbom.jsonJSON findings carry severity and confidence. SARIF is audit-only. The SBOM is
an inventory from lockfile data; missing licenses are NOASSERTION, never
invented.
| Code | Meaning |
|---|---|
0 |
clean, or informational findings only |
1 |
warnings to review |
2 |
high risk |
3 |
the check could not run or could not finish |
3 distinguishes "risky" from "scanner broke". --help and --version exit
0.
dep-vet reads the nearest .depvet.toml, or --config.
[[allow]]
package = "crossenv"
finding = "typosquat"
reason = "internal fork, reviewed 2026-11"
[policy]
min_age_days = 30
min_weekly_downloads = 1000
require_provenance = true
max_advisory_severity = "high"
allowed_licenses = ["MIT", "Apache-2.0"]
denied_licenses = ["GPL-3.0-only"]
severity = "warn"
[inspect]
max_download_mb = 25
max_total_mb = 100
max_entries = 10000
max_file_mb = 5
max_decompressed_mb = 200
disabled_rules = ["PY-IMPORT-001"]Unknown keys, zero thresholds, conflicting license lists, and unknown rule ids
are exit 3. A denied license is always HIGH; an unreadable license or missing
registry value is not checked.
dep-vet guard --check -- npm i express
dep-vet hook install claude --write
dep-vet mcp
dep-vet mcp --print-configguard audits packages named in an install command. The Claude hook maps HIGH
to deny and WARN to ask (deny with --strict) and always exits 0. The MCP
server exposes vet_package, vet_command, and vet_lockfile_change over
stdio and is listed in the official MCP Registry.
OpenCode / Claude / Cursor config:
dep-vet workflows .github/workflows
dep-vet mcp-config
dep-vet mcp-config --userWorkflow findings: unpinned actions, pull_request_target PR-head checkouts,
event data in run/script, write-all, pipe-to-shell, secret echo,
persisted credentials, workflow_run artifacts, self-hosted PRs,
secrets: inherit, and $GITHUB_ENV writes.
MCP config findings: network launchers, unpinned packages, literal secrets (redacted), non-https URLs, unknown script hosts, prompt-injection text, invisible characters, and unreadable server entries. No server is started and the resolved command is never printed.
dep-vet update
dep-vet update --check--check exits 1 when newer, 0 when current, 3 on failure. The passive
hint is silent in CI, JSON/SARIF/file output, hook, MCP, guard, and watch. Opt
out with DEPVET_NO_UPDATE_CHECK=1 or NO_UPDATE_NOTIFIER=1.
{ "mcp": { "servers": { "dep-vet": { "type": "local", "command": ["dep-vet", "mcp"] } } } }