Command

okulo vuln

Scan dependency lockfiles for known vulnerabilities (CVE/GHSA) via the public OSV.dev API.

securityosvci

When to use it

You want a CI gate or local report of known CVEs in npm, Maven, or Pub dependencies — without installing a separate scanner.

Usage

okulo vuln scan [repo] [options]

Options

OptionDefaultDescription
-f, --formattabletable, json, or markdown (PR comments)
--fail-onnonecritical, high, medium, low, any, or none — exit 1 when a finding meets the threshold
--ecosystemsallLimit to npm, Maven, and/or Pub (comma-separated or repeated)
--min-severityallOnly show findings at least this severe
--no-devoffSkip development/test-only dependencies
--offlineoffAnswer from the local OSV cache only (no network)
--no-cacheoffDo not read/write .git/okulo/osv-cache.json
--revworking treeScan lockfiles at this Git revision instead
--components A,BallOnly scan files in these components

Examples

Scan the current repo

okulo vuln scan
okulo vuln scan . -f json

CI gate on HIGH or worse

okulo vuln scan --fail-on high -f markdown -o vuln-pr.md

npm production deps only

okulo vuln scan --ecosystems npm --no-dev

Reuse the local cache (offline)

okulo vuln scan --offline

Sample output

Illustrative terminal output (column layout matches the real CLI):

okulo vuln scan  packages 128 · lockfiles 3 · complete
severity  package                         version   id                   fixed_in   source
────────  ──────────────────────────────  ────────  ───────────────────  ─────────  ─────────────────────
CRITICAL  lodash                          4.17.20   GHSA-xxxx…           4.17.21    web/package-lock.json
HIGH      org.springframework:…web        5.3.9     GHSA-yyyy…           5.3.14     service/pom.xml
MEDIUM    http                            0.13.3    GHSA-zzzz…           0.13.5     mobile/pubspec.lock

3 vulnerable package(s) · critical 1 · high 1 · medium 1 · low 0

How to read it

Tips

Related