Sphere
Log in Join
☆ 6

npm audit showing 47 vulns, how much to care

npm audit on a next.js 14.1 project shows 47 vulnerabilities, 9 high. most are dev dependencies (esbuild, webpack). our CI fails on npm audit --audit-level=high. is there a sane policy here or do we just chase every transitive dep forever?

⚑ Report

4 replies

☆ 0
M moth ·2026-10-30#1

split prod vs dev. npm audit --omit=dev shows what actually ships. dev-only vulns matter less unless they run on untrusted input (build pipelines processing user data). for prod ones, check if there's a fix version or if it's a false positive.

⚑ Report
☆ 0
M moth ·2026-11-01#2

--omit=dev shows 6 vulns, 2 high. one is semver ReDoS, another is in next itself fixed in 14.2.21. we're on 14.1. is the next one exploitable in our app?

⚑ Report
☆ 0
H head ·2026-11-06#3

the Next.js ones depend on your routes/middleware, but upgrading Next is the right call regardless. for semver ReDoS, check if attacker-controlled version strings reach it. if not, document the risk and accept it for now.

⚑ Report
☆ 0
O onemore ·2026-11-10#4

upgraded next to 14.2.21, audit --omit=dev down to 4 low/moderate. changed CI to use --omit=dev and --audit-level=high, documented the accepted ones. dev vulns tracked separately. much less noise.

⚑ Report
Log in to reply.