fleetlint Policy for a fleet of repositories
v0.5
Getting started

deps/vulnerability-scan/node

Dependencies are scanned for known vulnerabilities

Implements deps/vulnerability-scan for node.

Severitywarning
Tiers1, 2
Stacksnode
Scopeeach
Kindoutcome
Sourcelibrary v0.2.0
Selected byfleetlint-recommended@v0.2.0

Requirement

A task-runner recipe, a package.json script or a CI step runs the package manager’s audit (npm audit, pnpm audit, yarn npm audit, bun audit) or audit-ci, or a stack-neutral scanner. Comments, echo lines and lines that only install a tool do not count.

Why

A lockfile pins yesterday’s versions; only a scan says which of them are known to be exploitable today.

Parameters

  • runners: [../Makefile ../justfile ../Justfile ../Taskfile.yml ../Taskfile.yaml ../../Makefile ../../justfile ../../Justfile ../../Taskfile.yml ../../Taskfile.yaml ../../../Makefile ../../../justfile ../../../Justfile ../../../Taskfile.yml ../../../Taskfile.yaml]
  • skip: ^\s*[@+-]*\s*(\{\{[^}]*\}\}\s*|\$[({][A-Za-z_]+[)}]\s*)?(#|//|echo\b|printf\b|(sudo\s+)?(go (install|get)|cargo b?install|pipx? install|pip3 install|python3? -m pip install|uv (tool |pip )?(install|add)|(npm|pnpm|yarn|bun) (i|install|add|global add)|gem install|bundle add|brew install|dotnet tool (install|update)|composer (global )?require|apt(-get)? install|curl|wget)\b[^;&]*$)

Fix

Run npm audit --audit-level=high (or the pnpm/yarn/bun equivalent) in the audit target.

Agent instruction: Add the stack’s vulnerability scanner to the audit target of the task runner; use osv-scanner against the lockfile when the stack has no native tool. Do not fix the findings in the same change; list them.

See: https://fleetlint.org/baseline/#dependencies, https://fleetlint.org/stacks/#nodejs--typescript


Generated by fleetlint docs from catalog v0.2.0.