Skip to content

fix(security-alert): pnpm 11 moved overrides out of package.json - #80

Merged
kompiro merged 1 commit into
mainfrom
fix/security-alert-pnpm11-override-location
Aug 9, 2026
Merged

kompiro merged 1 commit into
mainfrom
fix/security-alert-pnpm11-override-location

Conversation

@kompiro

@kompiro kompiro commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Purpose

Closes #79

Summary

v0.15.0's step 3 names package.json's pnpm.overrides for pnpm with no version qualification. pnpm 11 does not read the pnpm field at all (pnpm/pnpm#10086) — settings live in pnpm-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.json conflicted 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.json never looks at pnpm-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.md

  • Step 3 — override-location list split by pnpm version (11+ → pnpm-workspace.yaml overrides:, 10 and earlier → package.json pnpm.overrides), plus a requirement to check packageManager and look at where existing overrides actually are before writing one. The silent-no-op failure mode is stated outright
  • Step 2 — declaration grep widened to pnpm-workspace.yaml, with a note that a missed location reads as absence rather than as an error

CHANGELOG.md — new ## [Unreleased] / ### Fixed entry

Verification

No build or test tooling in this repo by design. Verified against the live case: karasu's pnpm-workspace.yaml carries the floors under pnpm 11.20.0, and its package.json has no pnpm field for the widened grep to find.

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]>
@kompiro
kompiro merged commit 85039dc into main Aug 9, 2026
@kompiro kompiro mentioned this pull request Aug 9, 2026
@kompiro
kompiro deleted the fix/security-alert-pnpm11-override-location branch August 10, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

security-alert: pnpm 11 moved overrides out of package.json — the skill names the dead location

1 participant