🍕 fix(security): patch Rollup CVE-2026-27606 via npm overrides#4
Merged
Merged
Conversation
Resolves the open Dependabot alert (high severity). `@crxjs/vite-plugin@2.4.0` pins `rollup: 2.79.2` exactly in its dependencies, which is vulnerable to GHSA-mw96-cpmx-2vgc / CVE-2026-27606 (arbitrary file write via path traversal in chunk/asset filenames). The fix landed in the rollup 2.x maintenance backport `2.80.0`. Adds an `overrides` entry pinning `rollup` to `^2.80.0` so the transitive dep resolves to the patched release without forcing us off `@crxjs/vite- plugin@2`. The plugin's API surface is unaffected — the change is purely a security backport. Verification: - `npm ls rollup` now resolves to `2.80.0` - `npm audit` reports 0 vulnerabilities (was 2 high) - `npm run validate` and `npm run build` both pass Refs: GHSA-mw96-cpmx-2vgc Co-authored-by: Cursor <cursoragent@cursor.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.
Summary
Resolves the open Dependabot alert (high severity, GHSA-mw96-cpmx-2vgc / CVE-2026-27606): Rollup arbitrary file write via path traversal.
Root cause
@crxjs/vite-plugin@2.4.0pinsrollup: 2.79.2exactly in its dependencies. Any version< 2.80.0is vulnerable. The Rollup team backported the fix to the 2.x maintenance line asrollup@2.80.0(alongside3.30.0and4.59.0for the active majors).Vite 8 itself is not affected — it has migrated to rolldown for bundling, so the only
rollupin our tree is the transitive 2.x pin from@crxjs/vite-plugin.Fix
Add an
overridesentry topackage.jsonpinningrollupto^2.80.0. This forces npm to resolve the transitive dependency to the patched release without bumping@crxjs/vite-pluginoff its2.xline (the alternative npm-audit fix would have downgraded us to@crxjs/vite-plugin@1.0.14, a major step backwards).The Rollup 2.79.2 → 2.80.0 diff is purely the security backport — no API surface changes — so
@crxjs/vite-plugin's exact pin contract is honored at the API level.Verification
npm ls rolluprollup@2.79.2rollup@2.80.0npm auditnpm run validate(84 tests + lint + tc)npm run buildTest plan
npm installresolvesrollup@2.80.0npm auditreports 0 vulnerabilitiesnpm run validatepasses (84 tests, 0 lint warnings, 0 type errors, 0 format issues)npm run buildproduces the samedist/output sizes as beforeRefs: GHSA-mw96-cpmx-2vgc
Made with Cursor