Skip to content

chore: upgrade vite 5→8 and plugin-react 4→6, fix esbuild CVEs#158

Merged
maathimself merged 2 commits into
maathimself:mainfrom
saiththerobo:fix/security-audit-deps
Jun 15, 2026
Merged

chore: upgrade vite 5→8 and plugin-react 4→6, fix esbuild CVEs#158
maathimself merged 2 commits into
maathimself:mainfrom
saiththerobo:fix/security-audit-deps

Conversation

@saiththerobo

@saiththerobo saiththerobo commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Summary

CI has been failing on npm audit --audit-level=high since 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 to 6.30.4 via npm audit fix (fixes GHSA-2j2x-hqr9-3h42, moderate open-redirect)
  • No changes to vite.config.js — the existing config is compatible with vite 8

Testing

  • npm run lint — passes (0 errors, 0 warnings)
  • npm run build — passes with vite 8.0.16 / rolldown
  • npm test — all 781 tests pass
  • npm audit --audit-level=highfound 0 vulnerabilities

Contributor License Agreement

By submitting this pull request I confirm that:

  • I have read and agree to the Contributor License Agreement.
  • My contribution is my own original work (or I have identified any
    third-party material and confirmed it is compatible with the CLA).
  • I have the right to submit this contribution under the terms of the CLA.

@saiththerobo
saiththerobo force-pushed the fix/security-audit-deps branch from 2314708 to a1c2800 Compare June 14, 2026 18:58
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
saiththerobo force-pushed the fix/security-audit-deps branch from a1c2800 to eb74e92 Compare June 14, 2026 19:00
@saiththerobo saiththerobo changed the title fix: upgrade vite 5→8 and plugin-react 4→6 to resolve high-severity esbuild CVEs chore: upgrade vite 5→8 and plugin-react 4→6, fix esbuild CVEs Jun 14, 2026

@maathimself maathimself left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@maathimself
maathimself merged commit 6f65149 into maathimself:main Jun 15, 2026
2 checks passed
@saiththerobo
saiththerobo deleted the fix/security-audit-deps branch June 15, 2026 04:54
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.

2 participants