Skip to content

fix(dashboard): upgrade React Router past GHSA-qwww-vcr4-c8h2 - #394

Merged
haiyuan-eng-google merged 1 commit into
GoogleCloudPlatform:mainfrom
caohy1988:fix/dependabot-6-react-router
Jul 30, 2026
Merged

haiyuan-eng-google merged 1 commit into
GoogleCloudPlatform:mainfrom
caohy1988:fix/dependabot-6-react-router

Conversation

@caohy1988

Copy link
Copy Markdown
Collaborator

Summary

  • upgrade the dashboard from react-router-dom 7.18.1 to patched react-router 8.3.0
  • migrate imports to the React Router v8 package layout
  • raise the dashboard runtime floor to Node.js 22.22 and React 19.2.7, as required by React Router v8
  • refresh the npm lockfile and setup documentation

Why

This resolves Dependabot alert #6 / GHSA-qwww-vcr4-c8h2, a high-severity CSRF bypass affecting React Router >=7.12.0 <8.3.0.

React Router v8 removes the react-router-dom re-export package, so this is an explicit migration rather than a lockfile-only update.

Validation

  • npm ci
  • npm audit --json — 0 vulnerabilities
  • npm run lint
  • npm run build
  • local production-preview smoke test
@haiyuan-eng-google
haiyuan-eng-google marked this pull request as ready for review July 30, 2026 16:57
@haiyuan-eng-google
haiyuan-eng-google merged commit 740ae8e into GoogleCloudPlatform:main Jul 30, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants