Repository navigation
Upgrade vitest 3 to 5 to clear the tinypool and @vitest/mocker advisories - #15
Merged
Merged
Conversation
…ries npm audit flagged 3 dev-only vulnerabilities, all through vitest 3.2.7: tinypool <=2.1.1 (critical, prototype pollution to RCE: GHSA-5gmw-xhrv-c9v3, GHSA-85c8-ppgw-ccpr) and @vitest/mocker <=4.1.11 (moderate: GHSA-82fw-gwwq-j7x9, GHSA-qxg6-89mg-rqv8). vitest 5.0.5 drops tinypool and ships a fixed mocker. vite, esbuild and rollup are unchanged, so the production bundle is too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
npm auditreported 3 vulnerabilities, all in dev dependencies pulled in by vitest 3.2.7:They are reachable while tests or CI run, not from the shipped game:
npm audit --omit=devwas already clean.Change
vitest^3.0.0→^5.0.5(lockfile regenerated). vitest 5 drops tinypool and ships @vitest/mocker 5.0.5. Its peer range (vite ^6.4 || ^7 || ^8) and engines (node ^22.12) fit our vite 6.4.4 and the Node 22 in.nvmrc. No test or config changes were needed.vite, esbuild and rollup are unchanged in the lockfile, so the production bundle is unaffected.
Verification
npm audit: 0 vulnerabilities (was 1 moderate, 2 critical).🤖 Generated with Claude Code