Skip to content

fix dependency security issues - #9

Merged
1ssb merged 1 commit into
mainfrom
agent/resolve-dependency-security
Aug 6, 2026
Merged

fix dependency security issues#9
1ssb merged 1 commit into
mainfrom
agent/resolve-dependency-security

Conversation

@1ssb

@1ssb 1ssb commented Aug 6, 2026

Copy link
Copy Markdown
Owner

What changed

  • migrate the frontend from React 18 and React Router DOM 7 to React 19 and patched React Router 8
  • update browser-router imports and Vite chunk configuration
  • align CI, Docker, Node engine, and Node types with Node 22.22+
  • refresh the npm lockfile to remove vulnerable transitive packages

Why

The existing lockfile retained vulnerable React Router and turbo-stream releases. A newly published React Router advisory affects all available React Router DOM 7.x versions, so resolving the audit required moving to the patched React Router 8 package.

Impact

The frontend keeps the same routes and browser behavior while moving to supported dependency versions. CI and the frontend Docker build now use Node 22.

Validation

  • npm ci
  • npm audit --audit-level=moderate (0 vulnerabilities)
  • npm run build
  • npm run test (15 tests passed)
  • npm ls --all

@1ssb
1ssb merged commit 33b2fa0 into main Aug 6, 2026
7 checks passed
@1ssb
1ssb deleted the agent/resolve-dependency-security branch August 6, 2026 10:36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 972165a7d8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread frontend/package.json
"description": "RagIndex landing page — dark hero with looping video, marquee and liquid-glass UI.",
"engines": {
"node": ">=18"
"node": ">=22.22.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update local setup paths to require Node 22.22+

Fresh local installations still direct users to unsupported runtimes: frontend/.nvmrc selects Node 20, while the README and setup/launcher scripts advertise Node 18+. The newly added react-router@8.3.0 and this package now require Node >=22.22.0, so anyone following those entry points gets an unsupported install, and npm configurations with engine-strict=true reject it outright. Update the .nvmrc, prerequisites, and setup diagnostics alongside this engine change, or retain dependencies compatible with the documented Node versions.

Useful? React with 👍 / 👎.

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