Most CVE roundups are wallpaper. The advisory text is dense, the severity score is approximate, and you have no idea whether the bug actually fires in real applications or only in some contrived edge case. This post tries to fix that for the five most consequential npm vulnerabilities of the last quarter.
1. Prototype pollution in a popular config parser
A widely-depended-on JSON-with-comments parser shipped a regression that allowed prototype pollution via crafted input. The bug fires whenever you parse untrusted JSON — think config files uploaded by users, webhooks, or LLM outputs. Severity: high if your app touches user-controlled JSON anywhere; low if it doesn't. Fix is a one-line bump.
2. ReDoS in a logging library
The most boring high-severity bugs are the ones in libraries no engineer remembers depending on. A nested quantifier in an internal log-line parser created a regular expression with exponential backtracking. Send a single 200-character string and the worker pegs a CPU for minutes. Easy to trigger by an attacker, easy to miss in code review.
3. Path traversal in a static-file middleware
URL decoding bug let `..%2f` sequences escape the configured root. Anyone using the affected versions to serve `public/` is potentially leaking arbitrary files. The fix landed in a patch release within 12 hours of disclosure — but only about 40% of downstream apps had upgraded a week later, per ecosystem telemetry.
4. Server-side request forgery via image processor
An image library's URL-fetching mode followed redirects without validating the destination. Attackers could submit a URL that redirected to internal addresses (169.254.169.254, etc.) and trigger blind SSRF. The exploit needed user upload of arbitrary URLs — common for avatar uploaders and link previews.
5. Supply-chain compromise of a build tool
A transitive dependency of a popular bundler was briefly compromised by the Shai-Hulud worm. Even teams that pinned the bundler version pulled in the bad transitive on fresh installs for ~30 hours. The right defense isn't 'pin harder' — it's `npm ci` from a vetted lockfile, plus disabled postinstall scripts.
What to actually do this sprint
- Run `npm audit --audit-level=high` and triage anything red.
- Add `npm audit signatures` to CI to catch future supply-chain tampering.
- If you haven't enabled Dependabot or Renovate, do it today. Manual upgrade discipline never survives contact with deadlines.
- Subscribe to the GitHub Security Advisory feed, not just npm's. They diverge.
