Posts tagged “Remix”
New features, fixes and improvements to Netlify, as they ship.
-
The React Router team has disclosed seven security vulnerabilities in React Router. Most have limited impact on Netlify, but if your site uses React Router, you should update it. If your site doesn’t use React Router, you don’t need to do anything.
Am I affected?
Your site may be affected if it uses React Router 6, 7, or 8, either directly or through a framework built on it. These frameworks include, but aren’t limited to:
- Remix 2, which uses React Router 6
- Shopify Hydrogen, which uses React Router 7
Sites that don’t use React Router aren’t affected.
To check:
- In your site’s folder, install your dependencies, then list the installed React Router packages, using the commands for your package manager in the table below. In a monorepo, run them in the folder of the site you deploy, not the repository root. This lists every installed copy and its version, including copies that another framework, such as Remix 2, brings in. It only sees installed packages, so install first.
- This checks the code in your project folder, not what’s deployed. Older deploys keep running the code they were built with, as explained under “What should I do?”.
- You can also open your project’s
package.jsonfile and look forreact-routeror packages starting with@react-router/. A framework built on React Router may not list it there, so listing the installed packages is more reliable. - If an AI tool built your site and you’re not sure, ask it: “Does this project use React Router, directly or through another package? If so, which version?”
- If you have a Credit plan with Agent Runners, you can ask the same question in Ask mode.
Step npm pnpm Yarn Install dependencies npm installpnpm installyarn installList installed versions npm ls react-router @react-router/node @react-router/serve @react-router/devpnpm why react-router @react-router/node @react-router/serve @react-router/devyarn why react-router, then repeat for@react-router/node,@react-router/serve, and@react-router/devUpdate within your version range npm update react-router react-router-dom @react-router/node @react-router/serve @react-router/devpnpm update react-router react-router-dom @react-router/node @react-router/serve @react-router/devInstall the patched version for your major version directly (next row) Install a patched version directly npm install react-router@^7.18.6(7.x) ornpm install react-router@^8.5.1(8.x)pnpm add react-router@^7.18.6(7.x) orpnpm add react-router@^8.5.1(8.x)yarn add react-router@^7.18.6(7.x) oryarn add react-router@^8.5.1(8.x)What should I do?
If your site uses React Router 7 or 8, update it to a patched version and deploy again:
- Check that your
package.jsonlists React Router packages with a^or~version range, such as^7.17.0. A range such as*lets the update move you to a new major version, which can include breaking changes. - In the same folder, run the update command for your package manager from the table above. With npm and pnpm, it only installs versions that your
package.jsonallows, so it keeps you on your current major version. With Yarn, install the patched version for your current major version. - List the installed versions again and compare each package with its patched version below. If any are still affected:
- If the affected copy is nested under another package, such as
react-router-domor a framework, update that package. Installingreact-routeron its own doesn’t replace a copy that another package pins. - Otherwise, install a patched version directly, such as
react-router@^7.18.6orreact-router@^8.5.1, and do the same for any@react-router/packages you use. Then list the installed versions again to confirm every copy is patched.
- If the affected copy is nested under another package, such as
- Commit every file the update changed, including
package.jsonand your lockfile, such aspackage-lock.json,pnpm-lock.yaml, oryarn.lock, then deploy.
If an AI tool built your site, you can ask it to “update React Router to the latest patched version”.
The patched versions are:
react-router8.5.1 or later (for React Router 8.x)react-router7.18.5 or later (for React Router 7.x)@react-router/node,@react-router/serve, and@react-router/dev8.5.1 or later (for React Router 8.x)@react-router/nodeand@react-router/serve7.18.6 or later (for React Router 7.x)
React Router 6 and Remix 2: there is no patched React Router 6.x release for GHSA-x8j4-g9rr-8j87 or GHSA-7m2v-44vx-v55w, and
npm updatecan’t fix them. To fix these two issues, you need to upgrade to a patched React Router 7 or 8 release listed above. Remix 2 apps use React Router 6, so they need to move to React Router 7.Make sure the
IS_RR_BUILD_REQUESTenvironment variable is not set on your site or as a shared environment variable on your team. React Router sets it automatically during builds, and it should never be configured in your environment variables. If you find it, remove it, then create and publish a new deploy. Existing deploys keep the environment variables they were deployed with, so older deploys created while the variable was set stay affected until they’re deleted (see the next paragraph).Note that older deploys keep running the code they were built with. Publicly available deploy previews and older production deploys may remain vulnerable until they are automatically deleted, and Netlify never automatically deletes the most recent successful deploy of each branch, so branch deploys can stay vulnerable indefinitely. If you’ve locked auto publishing, Netlify builds your patched deploy but doesn’t publish it, so publish it manually. You can’t delete a deploy while it’s published. Check your deploys and delete vulnerable ones manually.
Vulnerabilities
Vulnerability Affected versions Fixed in GHSA-2rq8-3rm6-2w8f - Server-rendering DoS react-router7.0.0–7.18.4, 8.0.0–8.5.07.18.5, 8.5.1 GHSA-qhgm-jj2j-75wj - Prototype pollution react-router7.0.0–7.18.4, 8.0.0–8.5.07.18.5, 8.5.1 GHSA-mp5r-736v-j8x9 - Node.js server DoS @react-router/node7.0.0–7.18.5,@react-router/serve7.9.2–7.18.5,@react-router/node,@react-router/serve,@react-router/dev8.0.0–8.3.07.18.6, 8.3.1 GHSA-x8j4-g9rr-8j87 - Route-matching DoS react-router6.0.0–7.18.2, 8.0.0–8.3.07.18.3, 8.3.1 GHSA-mjj8-rxh9-q8f5 - RSC redirect XSS react-router7.11.0–7.18.3, 8.0.0–8.3.x7.18.4, 8.4.0 GHSA-8wpx-2pj4-ggvx - CSRF react-router7.12.0–7.18.2, 8.0.0–8.3.07.18.3, 8.3.1 GHSA-7m2v-44vx-v55w - Open redirect react-router6.4.0–7.18.2, 8.0.0–8.3.07.18.3, 8.3.1 Impact on Netlify
GHSA-2rq8-3rm6-2w8f and GHSA-x8j4-g9rr-8j87 (denial of service)
In short: someone could send specially crafted requests that make your site slow to respond.
These are server-side denial-of-service (DoS) vulnerabilities. On Netlify, this has minimal impact: our autoscaling serverless architecture means that a malicious request resulting in a crashed or hung function does not affect other requests. However, active exploitation could increase your function costs. GHSA-x8j4-g9rr-8j87 can also slow down a visitor’s browser during client-side navigation. Regardless of hosting provider, all apps on affected versions may be affected in the browser.
GHSA-qhgm-jj2j-75wj (prototype pollution)
In short: in a rare setup, an attacker could tamper with data your site’s server code relies on.
On the server, this issue only matters if a build-only React Router setting is present while your site is running. Netlify does not carry that setting from your build into production, and already blocks the related request headers before they reach Netlify Functions as well as Edge Functions. Most Netlify projects are not affected on the server. The only exception is a site where someone has added this setting as an environment variable, either on the site or as a shared environment variable on the team (see above). Regardless of hosting provider, all apps on affected versions should upgrade.
GHSA-mp5r-736v-j8x9 (Node.js server DoS)
In short: a specially crafted request could crash a self-hosted React Router server. Netlify doesn’t use that server.
This vulnerability affects the Node.js server that ships with
@react-router/node,@react-router/serve, and@react-router/dev. Netlify does not run this server for deployed projects, and Netlify rejects the malformed requests involved, therefore Netlify projects are not affected. We still recommend upgrading.GHSA-mjj8-rxh9-q8f5 (XSS in RSC redirects)
In short: with an experimental feature that Netlify doesn’t support, an attacker could run their own code on your site.
This only affects React Router’s experimental React Server Components (RSC) modes. Netlify’s React Router adapter does not support RSC, so Netlify projects are not affected. Regardless of hosting provider, apps using experimental RSC modes that redirect to untrusted destinations may be vulnerable.
GHSA-8wpx-2pj4-ggvx (CSRF)
In short: an attacker could trick a signed-in visitor into submitting a form on your site without meaning to.
To exploit this, an attacker needs to serve plain-HTTP content on your site’s own domain. Netlify serves every site over HTTPS and redirects plain-HTTP requests. Browsers also never load
*.netlify.appdomains over plain HTTP, so on*.netlify.appdomains, this is very unlikely to be exploitable. Custom domains don’t get this browser protection automatically. To get it, send aStrict-Transport-Securityheader from your site. Browsers only apply this header after a first visit over HTTPS. To also protect first visits, add your domain to the HSTS preload list.GHSA-7m2v-44vx-v55w (open redirect)
In short: a link to your site could send visitors on to an attacker’s site, such as a fake sign-in page.
Apps that redirect to a destination taken from user input, such as a
returnToquery parameter after login, may send visitors to an external site. Regardless of hosting provider, all apps redirecting to destinations from user input may be vulnerable. Upgrading fixes React Router’s own navigation, but your code should also check that a redirect destination stays on your site before redirecting.Resources
-
React Router 8 was just released and is already supported on Netlify.
The breaking changes are largely limited to these new minimums:
- Node.js 22.22.0+
- React 19.2.7+
- Vite 7+
How to upgrade
To upgrade your existing Netlify project follow the React Router 8 upgrade guide and upgrade the Netlify React Router Vite plugin to v4.0.0+:
npm i @netlify/vite-plugin-react-router@latestTry it now
To deploy a brand new, React Router 8 application to Netlify, click this button:
What you get
Full framework feature support, serverless and edge functions included, plus full Netlify platform emulation in local dev for you and your agents.
-
The React Router team has disclosed seven security vulnerabilities. Here’s what Netlify customers need to know.
Vulnerabilities
Vulnerability Package Affected versions Fixed in GHSA-8x6r-g9mw-2r78 — DoS via __manifestendpointreact-router7.0.0–7.14.x 7.15.0 GHSA-rxv8-25v2-qmq8 — DoS via single-fetch request body react-router7.0.0–7.13.x 7.14.0 GHSA-8646-j5j9-6r62 — XSS via javascript:redirect in unstable RSCreact-router7.7.0–7.13.1 7.13.2 GHSA-49rj-9fvp-4h2h — RCE when chained with prototype pollution react-router7.5.2–7.14.1 7.14.2 GHSA-2j2x-hqr9-3h42 — Protocol-relative open redirect react-router7.0.0–7.14.0 7.14.1 GHSA-f22v-gfqf-p8f3 — Stored XSS in prerendered redirect HTML @react-router/dev7.0.0–7.13.1 7.13.2 GHSA-84g9-w2xq-vcv6 — CSRF check bypassed for PUT/PATCH/DELETE react-router7.12.0–7.15.0 7.15.1 Impact on Netlify
GHSA-8x6r-g9mw-2r78 and GHSA-rxv8-25v2-qmq8 (denial of service)
These are server-side denial-of-service (DoS) vulnerabilities. On Netlify, these have minimal impact: our autoscaling serverless architecture means that a malicious request resulting in a crashed or hung function does not affect other requests. However, active exploitation could increase your function costs.
GHSA-8646-j5j9-6r62 (XSS in unstable RSC)
This vulnerability affects apps using the experimental
unstable_*RSC APIs where an attacker can control a redirect target. Only apps using these unstable APIs are affected.Regardless of hosting provider, affected apps passing untrusted input into RSC redirect calls may be vulnerable.
GHSA-49rj-9fvp-4h2h (RCE when chained)
This vulnerability is not directly exploitable against React Router alone. Reaching the vulnerable code path requires the application to first be independently vulnerable to a prototype pollution attack.
GHSA-2j2x-hqr9-3h42 (open redirect)
Apps that redirect users to attacker-supplied URLs with the intent to restrict them to the same origin may inadvertently allow protocol-relative redirects to external origins.
Regardless of hosting provider, all affected apps passing untrusted input to
redirect()may be vulnerable.GHSA-f22v-gfqf-p8f3 (stored XSS in prerendering)
This vulnerability affects apps using the prerendering feature (
prerender: [...]inreact-router.config.ts). If any redirect target baked into a prerendered build originates from external or attacker-controlled data, the static artifact remains affected until a fresh build is run with a patched version.Regardless of hosting provider, all affected apps using prerendering with externally sourced redirect targets may be vulnerable.
GHSA-84g9-w2xq-vcv6 (CSRF bypass for PUT/PATCH/DELETE)
The CSRF origin check introduced in React Router 7.12.0 only applied to
POSTrequests on the document-request path, leavingPUT,PATCH, andDELETEunchecked. In practice, exploitation additionally requires the app to have explicitly opened CORS for those methods and to be issuing session cookies withSameSite=None.Regardless of hosting provider, this only poses a meaningful risk in apps with permissive cross-origin configurations.
What should I do?
We strongly recommend upgrading as soon as possible to patched releases:
react-router7.15.1 or later@react-router/dev7.13.2 or later (if using prerendering)
If your app uses prerendering, trigger a fresh build after upgrading to regenerate any affected static assets.
Note that any publicly available deploy previews and branch deploys may remain vulnerable until they are automatically deleted. Consider deleting these deploys manually.
-
Shopify’s Hydrogen framework now works on Netlify with React Router 7 and Hydrogen 2026.1.0. The Netlify Hydrogen template has been fully rebuilt, and
@netlify/vite-plugin-react-routernow supports Hydrogen sites out of the box.The updated template also comes with two meaningful improvements:
- Netlify Cache API integration — Data fetching is cached using the Netlify Cache API, giving you low-latency responses without extra configuration.
- Full local platform emulation — The Netlify Vite Plugin provides zero-config local emulation of Blobs, Functions, Edge Functions, and AI Gateway during development, so what you test locally matches what runs in production.
To get started with a new Hydrogen site on Netlify, deploy the updated template:
To move an existing Hydrogen site over to Netlify, follow the How to deploy a Shopify Hydrogen storefront to Netlify guide.
Learn more:
-
The React Router team has disclosed six security vulnerabilities affecting React Router and Remix. Here’s what Netlify customers need to know.
Vulnerabilities
Vulnerability Remix versions React Router versions & modes CVE-2025-61686 - Path traversal ≤2.17.1 7.0.0–7.9.3
All modesCVE-2025-68470 - Open redirect - 6.0.0–6.30.1, 7.0.0–7.9.5
All modesCVE-2026-22030 - CSRF ≤2.17.2 7.0.0–7.11.0
Framework onlyCVE-2025-59057 - Meta XSS 1.15.0–2.17.0 7.0.0–7.8.2
Framework onlyCVE-2026-22029 - Redirect XSS ≤2.17.3 6.0.0–6.30.2, 7.0.0–7.11.0
Framework, DataCVE-2026-21884 - ScrollRestoration XSS ≤2.17.2 7.0.0–7.11.0
Framework onlyImpact on Netlify
CVE-2025-61686 (path traversal)
This vulnerability affects
@react-router/node,@remix-run/node, and@remix-run/deno. These packages are not used on Netlify, therefore Netlify projects are not affected.CVE-2025-68470 (open redirect)
Apps with unsafe uses of React Router navigation APIs may be hijacked to redirect to arbitrary origins.
Regardless of hosting provider, all apps constructing paths from untrusted user input may be vulnerable.
CVE-2026-22030 (CSRF)
Actions and experimental RSC Server Functions can be triggered by cross-origin form submissions, allowing an attacker to execute actions on behalf of authenticated users.
Regardless of hosting provider, all apps may be vulnerable.
CVE-2025-59057, CVE-2026-22029, and CVE-2026-21884 (XSS)
These are cross-site scripting (XSS) vulnerabilities. For example, in CVE-2026-22029 actions and experimental RSC Server Functions performing a redirect to a path constructed from untrusted user input may be hijacked to execute arbitrary JavaScript in the browser.
Regardless of hosting provider, all apps passing untrusted data into certain APIs may be vulnerable. (The Remix team has left this intentionally vague.)
What should I do?
If any of your projects are using any affected version listed above, we strongly recommend upgrading as soon as possible to patched releases:
react-router7.12.0 or later (for React Router 7.x)react-router6.30.2 or later (for React Router 6.x)@remix-run/react2.17.4 or later@remix-run/server-runtime2.17.4 or later
Note that any publicly available deploy previews and branch deploys may remain vulnerable until they are automatically deleted. Consider deleting these deploys manually.
-
React Router 7 apps on Netlify are deployed to Serverless Functions by default. Now, you can choose to deploy your app to Edge Functions instead, bringing your page renders, data loaders, and actions closer to your users while lowering cold start times.
How to use it
- Ensure you’re on version 7.9.0 or later of React Router:
npm install react-router@latest @react-router/node@latest @react-router/dev@latest- Update to the latest version of the Netlify React Router plugin:
npm install @netlify/vite-plugin-react-router@latest- Enable the new
edgeoption in yourvite.config.ts(or.js):
export default defineConfig({plugins: [reactRouter(),netlifyReactRouter({ edge: true }), // <- deploy to Edge Functionsnetlify(),],})- Finally, create a file at
app/entry.server.tsx(or.jsx) containing this single line:
export { default } from 'virtual:netlify-server-entry'On your next deploy, page renders, loaders, and actions will all run in an edge function.
When to use it
Choose Edge Functions when:
- You need minimal latency for your globally distributed users (edge functions run on the node closest to the user)
- You need to optimize cold starts (initialization is faster with the slim Deno edge runtime)
- Your data loaders and actions make requests to databases and APIs that are also globally distributed, or none at all
- You need to support very large request or response bodies (Serverless Functions have a 6 MB limit)
Choose Serverless Functions when:
- Your data loaders and actions make requests to databases or APIs that are centrally located (canceling out much of the benefit of edge compute)
- Your server-side code is CPU-intensive (Serverless Functions run on more powerful machines)
- You need longer execution times (Functions allow up to 30s clock time, while Edge Functions are limited to 50ms CPU time)
- You cannot use Edge Functions due to their runtime constraints or limitations
Next steps
- Create a new React Router 7 project with our template
- Read the Netlify React Router plugin docs for more details on deploying to the edge
-
React Router 7 recently launched its long-awaited middleware feature, stable since v7.9.0.
Middleware is now fully supported on Netlify.
How to use it
Ensure you’re on version 7.9.0 or later of React Router:
npm install react-router@latest @react-router/node@latest @react-router/dev@latestUpgrade to version 2 of the Netlify React Router plugin:
npm install @netlify/vite-plugin-react-router@latestAfter that, middleware works out of the box.
Next steps
- Check out the full React Router middleware docs
- Create a new React Router 7 project with our updated template
- Read the Netlify React Router plugin docs for more on loader/action context and to access type-safe Netlify context in middleware
-
We are aware of recently disclosed vulnerabilities affecting React Router and Remix:
- CVE 2025-31137 (React Router 7 and Remix): Spoof request path allowing certain access control bypasses
- CVE-2025-43864 (React Router 7 only): Cache poisoning leading to unusable responses
- CVE-2025-43865 (React Router 7 only): Cache poisoning with arbitrary data
Impact on Netlify sites:
- CVE 2025-31137: Sites on Netlify are not vulnerable, because the Netlify CDN cache varies on the query string by default, and Remix and React Router sites on Netlify do not use the impacted Express package.
- CVE-2025-43864: Sites on Netlify using React Router 7.2.0 to 7.5.1 were vulnerable until 04/27 3:00 UTC. However, exploitation requires all of the following conditions for a given URL to be poisonable:
- The site must not be using React Router’s SPA mode.
- The page or loader must be explicitly setting caching headers.
- A malicious request would need to be the first request to reach the cache (such as immediately after a deploy or cache invalidation).
- CVE-2025-43865: Sites on Netlify using React Router 7.0.0 to 7.5.1 were vulnerable until 04/27 3:00 UTC. However, exploitation requires all of the following conditions for a given URL to be poisonable:
- The page or loader must be explicitly setting caching headers.
- A malicious request would need to be the first request to reach the cache (such as immediately after a deploy or cache invalidation).
We strongly recommend upgrading to the latest versions of React Router (7.5.2).
Given these specific requirements, the number of vulnerable Netlify sites is low. However, out of an abundance of caution, our engineering team is actively rolling out a mitigation to further protect against these vulnerabilities. We will continue to monitor the situation and will provide updates as our work progresses.
Update: As of 2025-04-27 3:00 AM UTC, a mitigation has been rolled out to the Netlify CDN for all vulnerable sites.
-

When creating a new site from a template, there is a new option available — Remix Admin Supabase Starter.
This is a simple user admin application with CRUD operations for individual user records. The template is built with Remix and using Supabase as the backend (database) provider.
The repo is available at netlify-templates/remix-admin-template, and you can view a read-only demo here.