These days, you can use npm audit with flags to filter.
npm audit --audit-level=(low|moderate|high|critical)
This comes from their docs page: https://docs.npmjs.com/cli/v7/commands/npm-audit