Twelve pnpm exemptions for a Next.js version we have not installed in 181 days, and four override lines that turned out to be floors
pnpm 11 holds back any package version that was published less than a day ago. The setting is minimumReleaseAge, it defaults to 1,440 minutes, and it exists so that a freshly published malicious release has a day to be noticed before your install picks it up. The companion setting, minimumReleaseAgeExclude, is the escape hatch: a list of exact versions that may skip the wait.
I wrote about that gate once already, from an Expo monorepo where the exclude list was nine pinned versions. This time the subject is the web app behind pub-trivia.app, which has a smaller pnpm-workspace.yaml and a more embarrassing result.
The file has three jobs: it lists the one workspace package (ws-server), it carries the build-script allowlist and the overrides, and it carries the exclude list. On 30 November I bumped the dependencies and the file grew four lines. So I read the whole thing against the lockfile.
The exclude list names versions that are not in the lockfile
Twelve entries:
@next/env@15.5.19 @next/eslint-plugin-next@15.5.19 @next/swc-darwin-arm64@15.5.19 @next/swc-darwin-x64@15.5.19 @next/swc-linux-arm64-gnu@15.5.19 @next/swc-linux-arm64-musl@15.5.19 @next/swc-linux-x64-gnu@15.5.19 @next/swc-linux-x64-musl@15.5.19 @next/swc-win32-arm64-msvc@15.5.19 @next/swc-win32-x64-msvc@15.5.19 eslint-config-next@15.5.19 next@15.5.19 Eight of them are the platform binaries for Next's compiler, one per operating system and CPU pair, and the other four are the framework and its two companion packages. This is what an exclude list for a framework release looks like: you list the package and every one of its optional binaries, because a half-excluded release is a failed install.
grep -c 15.5.19 pnpm-lock.yaml returns 0. The lockfile resolves Next to 16.4.6, with @next/env@16.4.6 and the same eight binaries at that version. Nothing in the tree is at 15.5.19.
git log -S explains how that happened. The list was in the initial commit on 2 June, when package.json said Next 15.5. Two days later, on 4 June, the framework moved to 16 and the exclude list stayed behind. It has been dead for 181 days and has survived every one of the commits since, including the one that touched the file on 30 November.
What a dead exemption costs
Nothing, today. An exclude entry that matches no installed version does not do anything. That is the honest answer, and I would rather give it than inflate the finding.
The cost is what the list says to the next person who opens the file. It reads as "we deliberately bypass the release-age gate for Next". We do not, and cannot, for the version we run. Next 16.4.6 installed through the normal one day gate, which is how the setting is meant to work.
There is a second cost, which is the format. If a Next security patch lands and we want it inside the day, this list is where the entry goes, and the twelve lines above are the template for the right shape: the package, the two companions, and eight binaries. A stale copy of that template at least saves me typing it out, which is the only thing I can say in its favour.
I have not deleted it. The post is about what the file claims, and I would rather leave the file as it is for the moment and make the correction a separate commit.
The four new override lines
The overrides block had two entries until last week, pinning @types/react and @types/react-dom to exact versions so the types match the runtime. The dependency commit added four:
fast-uri: ^3.1.9 browserslist: ^4.28.7 baseline-browser-mapping: ^2.11.0 vite: ^8.1.6 None of these is a package we import. pnpm why shows where each comes from:
-
fast-uriarrives throughajv, which arrives throughschema-utilsand webpack, which arrives through the Sentry build plugin. -
browserslistandbaseline-browser-mappingarrive through Babel's compilation targets, the Sentry plugin, the lint config's React hooks plugin, andstyled-jsx. -
vitehas exactly one route in: through@vitest/mockerandvitest. We use vitest for the unit tests, so vite is a test runner's dependency, not part of anything that ships.
An override of this shape is a floor. It does not say "use this version", it says "never resolve below it". Here is what each floor resolves to in today's lockfile:
package override installed fast-uri ^3.1.9 3.1.9 browserslist ^4.28.7 4.29.6 baseline-browser-mapping ^2.11.0 2.11.40 vite ^8.1.6 8.4.0 Only fast-uri sits exactly on its floor. browserslist is a minor version above it, vite is three minors above, and baseline-browser-mapping is forty patch releases above. That is how a floor behaves: the lockfile moves up on its own, and the override only stops it moving down.
That makes these lines hard to read. A reader sees four packages named and reasonably assumes four problems were fixed. What the commit message says is that it aligned the lockfile with the overrides, which is true, and which does not say why the overrides are there. I do not know, and nothing in the file tells me.
If they were added to pull in a security fix, the version in the override should be the patched version and a comment should name the advisory. If they were added to stop duplicate copies, the right tool is pnpm dedupe, and pnpm why vite printing "Found 1 version of vite" suggests the floor did something. Either way, a four line block with no reasons is a trap for a future cleanup.
What an override cannot do
While checking, I ran pnpm audit. It reports five moderate advisories, in packages that arrive transitively through build and dev tooling. An override can raise a floor for a package that is below the fixed version, but the advisories I looked at are not helped by the four lines above, and none of the four packages is one of them. So the block should not be read as a response to the audit.
I am deliberately not listing the advisories, since a post is a poor place to publish an open findings list. The point is only that "we added overrides" and "we cleared the audit" are different claims, and the diff only supports the first.
What I would put in the file
Three changes, in order of cost:
- Delete the twelve exclusions, because nothing installed matches them.
- Put a one line comment above each override naming the reason, or delete the override.
- Set
minimumReleaseAgeexplicitly, even to the default of 1,440. Today the gate is on by omission, which is the weakest way for a security control to exist, and a future pnpm that changes the default would change our posture without a diff.
You cannot check any of this from the outside, since the file is in a private repository. What you can check is the product the file builds. The homepage loads a playable demo, the free tools run entirely in your browser, and the free tier needs no card. If you have a workspace file of your own, grep it for exact versions and then grep your lockfile for the same strings. Zero hits means you have an exemption for something you do not run.