Audits the locked dependencies of the current project against OSV.dev and
EEF CNA advisories and proves, on the compiled .beam call graph, whether
each vulnerable function can run in production.
mix vulncheck
mix vulncheck --fail-on reachable --format sarif --output vulncheck.sarif
mix vulncheck --diff origin/main --forbid-new-suppressions
mix vulncheck --sbom sbom.cdx.json --vex vex.openvex.jsonFunction-level analysis reads _build/<env>/lib; compile the target
environment first (MIX_ENV=prod mix compile). Without a build only
package-level verdicts are possible.
Options
--project-dir DIR— project to scan (default: current directory)--config FILE— configuration file (default:.vulncheck.exs)--env ENV—prod(default),devortest--format FMT/-f—terminal,json,markdown,sarif,github,gitlab,cyclonedxoropenvex--output FILE/-o— write the report to a file--sarif FILE— also write a SARIF 2.1.0 report--sbom FILE— also write a CycloneDX 1.6 SBOM--vex FILE— also write an OpenVEX v0.2.0 document--fail-on TIER—reachable,potentially_reachable(default),anyornone--min-severity SEV—low(default),medium,high,critical--show-unreachable— detail unreachable advisories--diff REF— show changes sinceREFand retain active findings without baseline evidence--baseline FILE/--write-baseline FILE— compare with or record a JSON baseline--forbid-new-suppressions— fail when.vulncheck.ignoregains entries compared with the--diffbase--otp-version VER— OTP release the project runs on--offline/--bundle FILE— air-gapped operation--no-color,--quiet
Exit codes
0— no finding at or above the thresholds1— policy violation: actionable findings, retired releases, expired or forbidden suppressions2— execution error: invalid flags or configuration, missing lockfile, feed unavailable offline