Skip to content
FOR THE LOVE OF ALL THINGS TECH
Cybersecurity

OWASP CVE Lite CLI scans JavaScript and TypeScript dependencies for known vulnerabilities

Illustration for OWASP CVE Lite CLI scans JavaScript and TypeScript dependencies for known vulnerabilities

CVE Lite CLI is a free, open-source command-line tool that checks JavaScript and TypeScript dependencies for known vulnerabilities. It reads project lockfiles locally, checks the resolved package versions against the Open Source Vulnerabilities (OSV) database and suggests updates when it identifies a fix.

As of June 7, 2026, CVE Lite CLI was an OWASP Incubator Project, the foundation’s initial project maturity tier. Sonu Kapoor maintained the tool. The project’s documentation lists support for npm, pnpm, Yarn and Bun.

Scanning and remediation

The scanner distinguishes direct dependencies that a project declares from transitive dependencies that other packages bring in. It generates commands for the detected package manager when it identifies an upgrade path. For transitive npm findings, the project says the scanner can recommend npm update <parent> to re-resolve the child dependency when the parent package’s existing dependency range allows a child version unaffected by the advisory. If the fix requires changing that range, the scanner can recommend upgrading the parent package to a version with a suitable range.

The project says its online OSV requests include package names and exact resolved versions and exclude source code and credentials. The tool can also scan offline using a previously synced advisory database. Offline results reflect the data saved at the last sync.

The optional --usage flag checks for static imports of flagged packages, a method that can miss packages loaded dynamically at runtime. The opt-in --fix mode applies eligible fixes for direct dependencies and then rescans the project.

Reports and continuous integration

The --report option generates a self-contained HTML report with searchable findings, severity information and suggested fix commands.

The project documents JSON and SARIF output, a CycloneDX software bill of materials and an option that returns a nonzero exit code when findings meet or exceed a chosen severity threshold. The optional install-skill command writes files that help coding assistants interpret scan results and prioritize fixes.