Skip to content

Fix Dependabot security alerts in server and client dependencies - #58

Merged
sis0k0 merged 4 commits into
mainfrom
fix/dependabot-security-updates
Nov 15, 2026
Merged

sis0k0 merged 4 commits into
mainfrom
fix/dependabot-security-updates

Conversation

@sis0k0

@sis0k0 sis0k0 commented Nov 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Reviewed the repo and confirmed the app (server + client) still runs correctly before making changes.
  • Resolved the open Dependabot alerts by updating vulnerable dependencies:
    • mern/server: bumped express to ^4.22.3, pulling in patched body-parser, proxy-addr (critical IP-spoofing advisory), and qs.
    • mern/client: ran npm audit fix to update transitive dev dependencies (vite, postcss, js-yaml, source-map-js, systeminformation, tmp, nanoid, form-data, brace-expansion).
    • mern/client: upgraded react-router-dom from ^6.22.0 to ^7.18.5 — the remaining open-redirect/SSR-hydration CVEs are only fixed in 7.18.0+. The app's router usage (createBrowserRouter, RouterProvider, Outlet, Link, NavLink, useParams, useNavigate) is API-compatible, verified below.
  • npm audit now reports 0 vulnerabilities in both mern/server and mern/client.

Verification

  • npm ci + npm audit clean in both mern/server and mern/client.
  • Server starts and GET /record returns 200 against the Atlas connection.
  • Client npm run build succeeds.
  • Full Cypress e2e suite (npx cypress run) passes against the running server + Vite dev server (2/2 tests).

Test plan

  • cd mern/server && npm ci && npm audit
  • cd mern/client && npm ci && npm audit
  • cd mern/client && npm run build
  • Start server + client, run npx cypress run end-to-end
  • CI run on this PR

🤖 Generated with Claude Code

sis0k0 and others added 3 commits November 15, 2026 08:57
Resolves Dependabot alerts #107, #105, #89 and the critical proxy-addr
IP spoofing advisory by updating express from ^4.18.2 to ^4.22.3,
which pulls in patched transitive dependencies.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Runs npm audit fix to update vite, postcss, js-yaml, source-map-js,
systeminformation, tmp, nanoid, form-data, and brace-expansion to
patched versions, resolving the majority of open Dependabot alerts
on mern/client without any breaking API changes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
react-router-dom 6.x (including the latest 6.30.x patch) remains
vulnerable to an open redirect via backslash in Link/useNavigate and
an arbitrary constructor injection in SSR hydration; the fix only
landed in 7.18.0+. The app's router usage (createBrowserRouter,
RouterProvider, Outlet, Link, NavLink, useParams, useNavigate) is
API-compatible with v7, verified via `npm run build` and the Cypress
e2e suite.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
GitHub Actions runners now force JS actions to execute on Node.js
>=24.20, and cypress-io/github-action@v6 bundles got@11, which throws
ERR_SOCKET_CLOSED_BEFORE_CONNECTION ("Socket closed before the
connection was established") immediately instead of retrying when
polling a server that isn't ready yet. This has been failing every
scheduled CI run on main since 2026-10-26. v7.4.4+ migrated to
got@16, which fixes the issue (cypress-io/github-action#1873).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sis0k0
sis0k0 merged commit 70a519f into main Nov 15, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Testing — 39e18227 Deployed Nov 15, 2026 by sis0k0 via build (20.x) #57
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