Skip to content

fix:[CORECM-18657] - Bump react-router to 7.18.2 in yuno-react (GHSA-qwww-vcr4-c8h2) - #156

Merged
ivanjtm merged 1 commit into
mainfrom
fix/CORECM-18657-react-router-7.18.2
Jul 30, 2026
Merged

ivanjtm merged 1 commit into
mainfrom
fix/CORECM-18657-react-router-7.18.2

Conversation

@ivanjtm

@ivanjtm ivanjtm commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Bumps react-router / react-router-dom from 7.18.1 to 7.18.2 in the yuno-react demo app.

Refs CORECM-18657 / VULS-5385, Dependabot alert #300 (GHSA-qwww-vcr4-c8h2).

Scope

Lockfile only. package.json already declares react-router-dom: ^7.15.1, which 7.18.2 satisfies, so no manifest change is needed. Edited surgically rather than regenerating the lockfile, to avoid unrelated peer metadata churn from a different npm version.

Impact assessment

This does not fix an exploitable issue here. GHSA-qwww-vcr4-c8h2 is a CSRF bypass in the unstable RSC code paths, and the advisory states it only affects applications using the unstable RSC APIs. yuno-react is a client-only Vite SPA: its entire react-router surface is createBrowserRouter (4 static routes), RouterProvider and Link, with no route action:, no <Form>, no useFetcher/useSubmit, and no server rendering. SecOps triaged VULS-5385 to the same conclusion: EXISTENT | UNREACHABLE | NOT EXPLOITABLE — Risk: NONE.

This is taken as free hygiene: 7.18.2 is a single patch release ("Harden RSC CSRF codepaths", remix-run/react-router#15353) with an identical dependency and peer-dependency set to 7.18.1.

Note on the Dependabot alert

Alert #300 will not auto-close from this bump. The advisory still declares vulnerableVersionRange: >= 7.12.0, < 8.3.0 with firstPatchedVersion: 8.3.0, and has not been updated with the 7.x backport, so 7.18.2 remains inside the flagged range. There is also no react-router-dom 8.x line at all (latest is 7.18.2; v8 dropped the -dom package), so reaching 8.3.0 would mean a major migration of the demo. Closing the alert therefore needs a manual dismissal as "vulnerable code is not actually used".

Verification

  • npm ci installs cleanly from the edited lockfile (integrity hashes validated by npm)
  • Installed react-router resolves to 7.18.2
  • npm run build (tsc -b && vite build) passes — 88 modules transformed, built in 750ms
  • No lockfile drift after npm ci

@ivanjtm
ivanjtm merged commit b468cbc into main Jul 30, 2026
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.

3 participants