Skip to content

fix: XSS vulnerability in @remix-run/router via open redirects#1501

Merged
yifancong merged 3 commits intomainfrom
copilot/fix-xss-vulnerability-remix
Jan 28, 2026
Merged

fix: XSS vulnerability in @remix-run/router via open redirects#1501
yifancong merged 3 commits intomainfrom
copilot/fix-xss-vulnerability-remix

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Addresses XSS vulnerability in @remix-run/router ≤1.23.1 caused by open redirects under certain scenarios.

Changes

  • Added pnpm override forcing @remix-run/router@1.23.2 (patched version)
  • Updated react-router-dom from 6.4.3 to 6.30.3 in packages/components and packages/client

The react-router-dom upgrade is required because versions ≤6.30.2 import invariant from @remix-run/router, which was renamed to UNSAFE_invariant in 1.23.2. Version 6.30.3 is compatible with the patched router.

Dependency resolution

All transitive dependencies now resolve to @remix-run/router@1.23.2. Previously vulnerable versions (1.0.3, 1.20.0, 1.23.0) are removed from the lock file.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • nvd.nist.gov
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Fix security vulnerability in @remix-run/router by addressing XSS vulnerabilities caused by open redirects under certain scenarios.

This pull request was created from Copilot chat.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@netlify
Copy link

netlify bot commented Jan 19, 2026

Deploy Preview for rsdoctor ready!

Name Link
🔨 Latest commit 75286fd
🔍 Latest deploy log https://app.netlify.com/projects/rsdoctor/deploys/69708480796649000860a7b3
😎 Deploy Preview https://deploy-preview-1501--rsdoctor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@yifancong yifancong marked this pull request as ready for review January 19, 2026 11:20
Copilot AI review requested due to automatic review settings January 19, 2026 11:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI changed the title [WIP] Fix security vulnerability in @remix-run/router Fix XSS vulnerability in @remix-run/router via open redirects Jan 19, 2026
Copilot AI requested a review from yifancong January 19, 2026 11:40
@yifancong yifancong force-pushed the copilot/fix-xss-vulnerability-remix branch from 0c5233d to 75286fd Compare January 21, 2026 07:47
@cloudflare-workers-and-pages
Copy link

Deploying rsdoctor with  Cloudflare Pages  Cloudflare Pages

Latest commit: 75286fd
Status: ✅  Deploy successful!
Preview URL: https://777b9fd3.rsdoctor.pages.dev
Branch Preview URL: https://copilot-fix-xss-vulnerabilit.rsdoctor.pages.dev

View logs

@yifancong yifancong requested a review from 9aoy January 28, 2026 06:31
@yifancong yifancong enabled auto-merge (squash) January 28, 2026 07:56
@yifancong yifancong force-pushed the copilot/fix-xss-vulnerability-remix branch from 75286fd to 021396c Compare January 28, 2026 08:00
@yifancong yifancong changed the title Fix XSS vulnerability in @remix-run/router via open redirects fix: XSS vulnerability in @remix-run/router via open redirects Jan 28, 2026
@yifancong yifancong requested a review from fi3ework January 28, 2026 08:06
@yifancong yifancong merged commit 027607a into main Jan 28, 2026
5 checks passed
@yifancong yifancong deleted the copilot/fix-xss-vulnerability-remix branch January 28, 2026 08:51
@yifancong yifancong mentioned this pull request Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants