Advisories
For your digest

react-router, @remix-run/router: React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL r…

It touches something Phylax follows. No evidence of use yet.

Does it affect what I run?

Checked in your browser. The version you type is not sent anywhere.

Who is affected

  • react-router (npm): from 7.0.0, before 7.14.1
  • react-router (npm): from 6.7.0, before 6.30.4
  • @remix-run/router (npm): from 1.3.0, before 1.23.3

The fix

  • react-router (npm) fixed in 7.14.1

    npm
    npm install react-router@7.14.1
    pnpm
    pnpm add react-router@7.14.1
    yarn
    yarn add react-router@7.14.1
    bun
    bun add react-router@7.14.1
    Check what is installed
    npm ls react-router
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency react-router to 7.14.1 or the nearest later release, to fix CVE-2026-40181. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • react-router (npm) fixed in 6.30.4

    npm
    npm install react-router@6.30.4
    pnpm
    pnpm add react-router@6.30.4
    yarn
    yarn add react-router@6.30.4
    bun
    bun add react-router@6.30.4
    Check what is installed
    npm ls react-router
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency react-router to 6.30.4 or the nearest later release, to fix CVE-2026-40181. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • @remix-run/router (npm) fixed in 1.23.3

    npm
    npm install "@remix-run/router@1.23.3"
    pnpm
    pnpm add "@remix-run/router@1.23.3"
    yarn
    yarn add "@remix-run/router@1.23.3"
    bun
    bun add "@remix-run/router@1.23.3"
    Check what is installed
    npm ls @remix-run/router
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency @remix-run/router to 1.23.3 or the nearest later release, to fix CVE-2026-40181. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.

Fix commands generated from the advisory's versions. No model wrote them.

In plain words

Brief pending: here are the facts and the fix. The explanation in plain words follows when it has been written and checked.

Evidence

No evidence that it is being used, or can be. It is listed because of what it affects.

Timeline

  1. First published here, as "For your digest".