Skip to content

fix(deps): upgrade react-router-dom to v7 and patch vulnerable transitive packages - #202

Merged
jplanckeel merged 1 commit into
BananaOps:mainfrom
TartanLeGrand:fix/web-deps
Sep 23, 2026
Merged

jplanckeel merged 1 commit into
BananaOps:mainfrom
TartanLeGrand:fix/web-deps

Conversation

@TartanLeGrand

Copy link
Copy Markdown
Contributor

What

npm audit on main reports 7 advisories (5 high, 2 moderate), all pre-existing. The Snyk PR check only runs when a manifest changes, so every PR touching web/package.json inherits them and fails (#200, #201).

  • react-router-dom 6.30.x to 7.18.3: open redirect via backslash in <Link> / useNavigate and arbitrary constructor injection (moderate, production dependency). Every 6.x release is affected. The app already ran with the v7_startTransition and v7_relativeSplatPath future flags, so the migration is the package bump plus removing those flags, which are the default in v7. Imports used (BrowserRouter, Routes, Route, Link, Navigate, Outlet, useNavigate, useParams, useLocation) are unchanged.
  • js-yaml 4.3.2: quadratic CPU consumption in !!omap resolution, CVE-2026-59870 (high, transitive).
  • postcss 8.5.28, nanoid 3.3.18, browserslist 4.28.9, brace-expansion 1.1.18 / 5.0.9: DoS and prototype write advisories in build-time dependencies (high, dev only).

Checks

  • npm audit: 0 vulnerabilities (was 7).
  • npm run build and npm run build:static: green.
  • tsc --noEmit: 122 errors, identical to main, none new.
  • Preview of the production build in a browser: redirect / to /dashboard, sidebar navigation and page rendering work under react-router 7.

Refs #200, #201

…tive packages

npm audit reported 7 advisories on main: react-router / react-router-dom
open redirect (moderate, all 6.x affected), js-yaml CVE-2026-59870 and
DoS advisories in postcss, nanoid, browserslist and brace-expansion.
The router migration only drops the v7 future flags, which are the
default behaviour in react-router 7.
@jplanckeel
jplanckeel merged commit a4f9afc into BananaOps:main Sep 23, 2026
1 of 2 checks passed
TartanLeGrand added a commit to TartanLeGrand/tracker that referenced this pull request Sep 28, 2026
main moved to react-router 7 (BananaOps#202), where the v7_* future flags are the
default behaviour and no longer part of the MemoryRouter props.
TartanLeGrand added a commit to TartanLeGrand/tracker that referenced this pull request Oct 2, 2026
main moved to react-router 7 (BananaOps#202), where the v7_* future flags are the
default behaviour and no longer part of the MemoryRouter props.
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