--fix is a conservative auto-remediation mode for CVE Lite CLI.
It is intended to reduce manual install-scan-repeat loops while keeping behavior explicit and predictable.
- applies fixes for direct dependencies only
- requires a validated lowest known non-vulnerable version target
- uses package-manager-native commands:
npm installpnpm addyarn add
- rescans automatically after fixes are applied
- prints a concise summary:
- applied fixes
- skipped findings
- findings before/after fix
- remaining severity mix
- does not auto-apply transitive override/resolution rules
- does not guarantee compatibility with your codebase
- does not perform exploitability or runtime reachability analysis
npx cve-lite-cli /path/to/project --fix- scan starts and loads advisory matches
Applying fixes (--fix)section begins- direct package fixes are applied with progress (for example
Applying direct fix 3/7: npm install pkg@version) - scan reruns automatically
- concise fix summary is printed
Transitive (v1 skip)means a parent upgrade path may exist, but--fixintentionally does not auto-apply it in v1.No validated direct targetmeans a direct dependency did not have a safe validated target for automatic remediation.
For full diagnostic context, run a separate verbose scan:
npx cve-lite-cli /path/to/project --verbose- run
--fixfor fast direct remediation - review remaining findings in summary
- run
--verbosewhen you need full parent-path and table-level detail - test your project after dependency updates