Repository navigation
fix(security-alert): pnpm 11 moved overrides out of package.json - #80
Merged
Merged
Conversation
Step 3 named `package.json`'s `pnpm.overrides` for pnpm with no version qualification. pnpm 11 does not read the `pnpm` field at all (pnpm/pnpm#10086). Writing an override there on a pnpm 11 repo is not an error — it is silently ignored, the vulnerable version stays resolved, and the PR goes green. For a security skill that is the worst failure mode available: it looks fixed. Caught in dogfooding within a day of v0.15.0. karasu migrated to pnpm 11 while the dompurify fix was in flight, and merging main forward would have carried the floor raise into a block pnpm 11 ignores. It only surfaced because package.json happened to conflict for an unrelated reason. The step 2 pin diff from #76 shared the blind spot: its grep never looked at pnpm-workspace.yaml, so on pnpm 11 an existing override reads as no pin at all. Widened, with a note that a missed location reads as absence rather than as an error. Closes #79 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Closes #79
Summary
v0.15.0's step 3 names
package.json'spnpm.overridesfor pnpm with no version qualification. pnpm 11 does not read thepnpmfield at all (pnpm/pnpm#10086) — settings live inpnpm-workspace.yaml. Writing an override in the old place on a pnpm 11 repo is not an error: it is silently ignored, the vulnerable version stays resolved, and the PR goes green.For a skill whose whole job is closing advisories, that is the worst failure mode available — it looks fixed.
How it surfaced
Dogfooding, within a day of cutting v0.15.0. karasu migrated to pnpm 11 (its ADR-2401) while the dompurify fix from #76 was still open, and merging main forward would have carried the floor raise into a block pnpm 11 ignores. It was caught only because
package.jsonconflicted for an unrelated reason — nothing in the skill would have flagged it.The step 2 pin diff added in #76 had the same blind spot from birth:
grep -rn '"<pkg>"' package.json packages/*/package.jsonnever looks atpnpm-workspace.yaml, so on a pnpm 11 repo an existing override reads as "no pin at all" — the exact misreading #76 exists to prevent.Changes
skills/security-alert/SKILL.mdpnpm-workspace.yamloverrides:, 10 and earlier →package.jsonpnpm.overrides), plus a requirement to checkpackageManagerand look at where existing overrides actually are before writing one. The silent-no-op failure mode is stated outrightpnpm-workspace.yaml, with a note that a missed location reads as absence rather than as an errorCHANGELOG.md— new## [Unreleased] / ### FixedentryVerification
No build or test tooling in this repo by design. Verified against the live case: karasu's
pnpm-workspace.yamlcarries the floors under pnpm 11.20.0, and itspackage.jsonhas nopnpmfield for the widened grep to find.