Find and fix
Dependencies
Check your project's dependencies against advisory databases and apply the package manager's fixes.
0 scan deps runs your ecosystem’s own audit tool and prints vulnerable dependencies in one format.
cd my-app0 scan deps scanNo model or API key is needed.
0 scan deps scan0 scan deps scan --cwd ./services/api --json0 scan deps scan --ecosystem pnpm0 detects the ecosystem from the files in the project directory, in this order:
| Files found | Ecosystem | Command 0 lab runs |
|---|---|---|
pnpm-lock.yaml | pnpm | pnpm audit --json |
package-lock.json or npm-shrinkwrap.json | npm | npm audit --json |
Cargo.lock or Cargo.toml | cargo | cargo audit --json |
uv.lock, poetry.lock or requirements.txt | pypi | pip-audit --format=json |
--ecosystem overrides detection. The tool must be installed and on your PATH: cargo audit comes from cargo install cargo-audit, pip-audit from pip install pip-audit.
Output
Section titled “Output”npm: 2 vulnerable dependencies- lodash [high]: Prototype Pollution in lodash (fix: 4.17.21)- minimist [critical]: Prototype Pollution in minimist (fix: available)--json prints the ecosystem, the command, its exit code, the parsed findings (package, severity, advisory, fix) and the tool’s raw JSON.
| Exit | Meaning |
|---|---|
0 | No vulnerable dependencies reported |
1 | At least one vulnerable dependency |
2 | The audit tool exited with an error and 0 parsed no findings |
Commit or stash your work first. With --yes, deps fix changes your lockfile and manifests.
0 scan deps fix0 scan deps fix --yes0 scan deps fix --yes --cwd ./services/apiWithout --yes, 0 prints the command it would run and changes nothing.
| Ecosystem | Command 0 lab runs |
|---|---|
pnpm | pnpm audit --fix |
npm | npm audit fix |
cargo | cargo update |
pypi | pip-audit --fix |
With --yes, 0 prints the tool’s output and exits with its exit code. Run 0 scan deps scan again and your tests afterwards.
Scan a package you depend on
Section titled “Scan a package you depend on”deps reports known advisories. To review the code of one package, including issues with no advisory yet, run a package scan:
0 scan package lodash --package-version 4.17.20See Scan code.
Limits
Section titled “Limits”- Results are only as complete as the audit tool and its advisory database. A vulnerable version with no published advisory is not reported.
- An advisory match does not mean the vulnerable code is reachable in your project.
cargo updateupdates within your semver ranges; it can change more than the vulnerable crates and cannot fix an advisory that needs a major version bump.- For Python, 0 lab runs
pip-auditwith no arguments, which audits the active Python environment, not the lockfile. Activate the project’s environment first.pip-audit --fixupgrades packages in that environment. - Only the four ecosystems above are supported. Other manifests fail with “No supported dependency manifest found”.
- Scan code to review the code itself.
- CLI reference for every command.