Skip to content

fix(deps): migrate off react-router-dom to react-router v8 (security) - #24

Merged
fcraviolatti merged 1 commit into
mainfrom
fix/react-router-cve-8.3.0-rsc-csrf
Jul 27, 2026
Merged

fix(deps): migrate off react-router-dom to react-router v8 (security)#24
fcraviolatti merged 1 commit into
mainfrom
fix/react-router-cve-8.3.0-rsc-csrf

Conversation

@fcraviolatti

Copy link
Copy Markdown
Contributor

Summary

  • react-router-dom never received a v8 release; react-router 8.3.0 now ships the DOM bindings directly
  • Uninstall react-router-dom, install react-router@8.3.0
  • Bump react/react-dom to 19.2.8 (react-router v8 peer requirement)
  • Update all imports across frontend/src from react-router-dom to react-router
  • Fixes Dependabot alert fix(deps): patch 4 Dependabot frontend advisories #9 (high severity): RSC mode CSRF bypass allowing action execution before a 400 response

Note

react-router@8.3.0 declares an engine requirement of Node >=22.22.0. Local dev showed an EBADENGINE warning on Node 22.17.0 (non-fatal); CI pins node-version: "22" which resolves to the latest 22.x patch, so this should be fine, but worth a build-log check on this PR.

Test plan

  • tsc --noEmit clean
  • npm run build succeeds
  • Manual smoke test of routing (login, tenant dashboard, superadmin pages) recommended before merge — this is a major version bump of the router

react-router-dom never received a v8 release; react-router 8.3.0
now ships the DOM bindings directly. Bump react/react-dom to
19.2.8 (react-router v8 peer requirement) and update all imports
from 'react-router-dom' to 'react-router'.

Fixes Dependabot alert #9 (high severity): RSC mode CSRF bypass
allowing action execution before a 400 response.
@fcraviolatti
fcraviolatti merged commit 08b5575 into main Jul 27, 2026
13 checks passed
@fcraviolatti
fcraviolatti deleted the fix/react-router-cve-8.3.0-rsc-csrf branch July 27, 2026 22:02
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.

1 participant