fix: upgrade react-router to 7.18.0 (CVE-2026-55685) - #1923
Conversation
Automated dependency upgrade by OrbisAI Security
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe frontend package configuration updates ChangesFrontend dependency configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes Mergeability Score: ⚪ Minimal · up to The PR upgrades react-router to address the reported vulnerability without introducing any supplied merge-blocking concern; it is merge-ready after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@frontend/package.json`:
- Line 53: Update the react-router override in frontend package configuration to
a compatible 7.x release, such as 7.18.0 or later, instead of 8.3.0. Then
regenerate frontend/package-lock.json so the resolved dependency tree matches
react-router-dom@7.17.0.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 7b3934bf-81b1-4365-9398-228bbb27da6a
⛔ Files ignored due to path filters (1)
frontend/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (1)
frontend/package.json
|
@anupamme Address coderabbit suggestions |
The override was incorrectly set to 8.3.0 (a cross-major mismatch with react-router-dom@7.x and incompatible with react@18). Change it to 7.18.0 and regenerate the lockfile so the fix lands at the top-level package. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
done. |
|
✅ Changes Applied I've updated the code based on your feedback: The CodeRabbit review identified that while
Files modified:
The changes have been pushed to this PR branch. Please review! |
Summary
Upgrade react-router from 7.17.0 to 7.18.0 to fix CVE-2026-55685.
Vulnerability
CVE-2026-55685frontend/package-lock.json(dependency:react-router)Description: react-router: @remix-run/server-runtime: React Router: Denial of Service via unauthenticated manifest endpoint requests
Evidence
Scanner confirmation: trivy rule
CVE-2026-55685flagged this pattern.Changes
frontend/package.jsonfrontend/package-lock.jsonBehavior Preservation
The change is scoped to 2 files on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.
This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.
Automated security fix by OrbisAI Security
Summary
react-routerandreact-router-domto7.18.0to address CVE-2026-55685.7.18.0with dependency overrides.frontend/package.jsonandfrontend/package-lock.json.