A lightweight, zero-dependency CLI tool (v0.1.8, active development) that audits Yarn Classic (v1) lockfiles against the OSV.dev vulnerability database. It supports four output formats (compact, table, json, summary), config files, severity filtering, and allowlisting. Unlike npm audit or yarn audit, it uses the open-source OSV database and works with Yarn v1 lockfiles. Requires Node >=18. Released via GitHub Actions with npm provenance.
npm install yarn-osv-auditVerified import paths — ran on the pinned version, not inferred.
Creates a minimal Yarn v1 project with a lockfile containing known vulnerable semver, then runs yarn-osv-audit to scan for vulnerabilities.
Upgrade Node to version 18 or later.
Use npm audit or yarn audit (v2) instead.
Migrate to Yarn v3 or npm.
Use --offline or --cache options if available; otherwise accept network dependency.
Use allowlist in config file to suppress known false positives.
Install locally: yarn add -D yarn-osv-audit
Run yarn install or npm install
Run the command in a directory containing a yarn.lock file, or specify --lockfile path
Use one of: compact, table, json, summary
No dependency data recorded yet.