Skip to content
All rules

DEPS-OSV

Dependency with a known vulnerability

Severity
Per OSV advisory
Confidence
High
Stack
Dependencies
Runs
with --deps

What the CLI looks for

With --deps: packages in your lockfiles that have an advisory in the OSV database, split into runtime and build-time dependencies.

Why it matters

A vulnerable runtime dependency can be reachable in production; a build-time one usually isn't. Splitting them keeps you focused on what matters.

How to fix it

Update runtime dependencies to the fixed version named in the advisory first. Schedule build-time updates with your next release.

npm install <package>@<fixed-version>