When npm audit turns red: two advisories, two different answers
How to read an npm audit advisory, check whether your code is affected, and what to do when no patched version exists yet.On 16 November 2026, npm audit --omit=dev reported no advisories for jexcellence.de. On 17 November it reported one, on 18 November three. Nothing in the site's code had changed. What had changed was the GitHub advisory database. This post shows how the two cases were handled: one was closed with a patch update within a day, the other had no fix at all.
Plain npm audit checks every package in the lockfile, linters and test tools included. --omit=dev skips devDependencies and checks only dependencies and what they pull in. For a website that is the shorter and more relevant list. Keep one caveat in mind: a package listed under dependencies can still run only at build time and never in a visitor's browser. More on that below.
The finding on 17 November:
The advisory describes information disclosure across root params when a function marked 'use cache' is called through unstable_cache(). That is a narrow path through Next.js. Searching the site's app and lib folders for either name found nothing:
As far as the code shows, the site does not use the affected path. That is not a reason to skip the update. As long as the finding stays open, the audit stays red, and the next real finding disappears into a report everyone has learned to ignore.
package.json declared "next": "^16.4.3". The caret allows any version from 16.4.3 up to, but not including, 17.0.0. npm outdated listed 16.4.6 as both wanted and latest. The fixed version was inside the range, so only the lockfile had to change.
Dependabot had already opened "Bump next from 16.4.3 to 16.4.6" on 17 November. It also covered a second Next.js advisory, GHSA-vc7v-qv4w-wrv8, for 16.2.0 to 16.4.4. The pull request reported no checks, so the branch was verified locally:
Lint, the type check and 93 tests passed, and both Next.js advisories were gone. The pull request was merged on 18 November.
The same audit on 18 November listed two new high-severity entries for GHSA-fc5q-39xc-vjpf in picomatch, a library that matches file patterns such as **/*.ts. The issue is a regular expression denial of service: a crafted pattern can keep the matcher busy for a very long time.
None of the site's own packages depends on picomatch directly. npm ls shows the chain:
next-intl@4.11.0 and sass@1.99.0 depend on the file watcher @parcel/watcher@2.5.6, which depends on picomatch@4.0.4. Because next-intl and sass are regular dependencies, the finding shows up even with --omit=dev. Reading the tree, the watcher runs during development and builds, not when a visitor loads a page. That is a reading of the dependency tree, not a verified fact.
npm printed "fix available via npm audit fix". The advisory itself, on 18 November, listed every version up to and including 4.0.7 as affected, with no patched release, and 4.0.7 was the latest published version. No update and no overrides entry could clear the finding that day.
A dry run also showed what the command would really have done:
It would have removed eslint-config-next. So it was not run. A dry run before any npm audit fix takes seconds and shows side effects like this before they land in the lockfile.
The decision was to change nothing, keep the finding visible and reopen the item once picomatch ships a patched release. The site's backlog holds the date, the advisory link, the dependency chain and the reason, so nobody has to redo the same research two weeks later.
Looking it up again for this post on 30 November, the GitHub advisory database listed GHSA-fc5q-39xc-vjpf as a "Withdrawn Advisory", withdrawn on 18 November 2026 at 15:38 UTC, a few hours after the decision. There is still no patched release, and picomatch@4.0.4 is still in the lockfile, yet npm audit no longer reports it. The lesson for the follow-up: check not only whether a new version exists, but also whether the advisory still stands.
- Does my code trigger it? Read which call or setting the advisory names and search your code for it. Update anyway if the answer is no, so the audit turns green again.
- Is there a patched version, and does it fit the declared range? npm outdated answers the second part. Inside the range, a lockfile update is enough. If no patched version exists, neither audit fix nor overrides will help.
- What else does the update change? Dry run first, then npm ci with lint, type check, tests and another npm audit --omit=dev. A Dependabot pull request without checks is a suggestion, not an approval.
If the answer to the second question is no, write down the advisory, the chain, your assessment and when to look again. An open finding with a reason beats one nobody reads any more.