chore: upgrade vite 5→8 and plugin-react 4→6, fix esbuild CVEs#158
Merged
maathimself merged 2 commits intoJun 15, 2026
Merged
Conversation
saiththerobo
force-pushed
the
fix/security-audit-deps
branch
from
June 14, 2026 18:58
2314708 to
a1c2800
Compare
esbuild 0.17.0–0.28.0 carries two high-severity advisories (GHSA-67mh-4wv8-2f99, GHSA-gv7w-rqvm-qjhr). Vite 4–8.0.3 bundles esbuild in that range, causing `npm audit --audit-level=high` to fail on CI since June 12. Vite 8 replaces esbuild with rolldown as its bundler, removing the vulnerable dependency entirely. This upgrade also pulls in @vitejs/ plugin-react 6 (the matching React plugin for vite 8) and bumps react-router-dom from 6.30.3 to 6.30.4, resolving the remaining moderate open-redirect advisory (GHSA-2j2x-hqr9-3h42). Verified: lint, build, and all 781 tests pass locally with vite 8.0.16 and @vitejs/plugin-react 6.0.2.
saiththerobo
force-pushed
the
fix/security-audit-deps
branch
from
June 14, 2026 19:00
a1c2800 to
eb74e92
Compare
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
CI has been failing on
npm audit --audit-level=highsince June 12 due to two high-severity esbuild advisories (GHSA-67mh-4wv8-2f99, GHSA-gv7w-rqvm-qjhr). The vulnerable range is esbuild 0.17.0–0.28.0, which vite 4–8.0.3 bundled internally. Vite 8 replaces esbuild with rolldown as its bundler, removing the vulnerable dependency entirely.Changes
vite:^5.1.4→^8.0.16(rolldown replaces esbuild — fixes both HIGH CVEs)@vitejs/plugin-react:^4.2.1→^6.0.2(matching React plugin for vite 8)react-router-dom: bumped to6.30.4vianpm audit fix(fixes GHSA-2j2x-hqr9-3h42, moderate open-redirect)vite.config.js— the existing config is compatible with vite 8Testing
npm run lint— passes (0 errors, 0 warnings)npm run build— passes with vite 8.0.16 / rolldownnpm test— all 781 tests passnpm audit --audit-level=high—found 0 vulnerabilitiesContributor License Agreement
By submitting this pull request I confirm that:
third-party material and confirmed it is compatible with the CLA).