---
id: CVE-2025-61686
title: React Router is a router for React
summary: >-
  React Router is a router for React. In @react-router/node versions 7.0.0
  through 7.9.3, @remix-run/deno prior to version 2.17.2, and @remix-run/node
  prior to version 2.17.2, if createFileSessionStorage() is being used from
  @react-router/…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'
cwe:
  - CWE-22
vendor: shopify
product: react-router/node
affected:
  - 'react-router/node >= 7.0.0, < 7.9.4'
  - remix-run/deno < 2.17.2
  - remix-run/node < 2.17.2
patched:
  - react-router/node 7.9.4
  - remix-run/deno 2.17.2
  - remix-run/node 2.17.2
published: '2026-01-10'
updated: '2026-06-27'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-61686'
references:
  - url: >-
      https://github.com/remix-run/react-router/security/advisories/GHSA-9583-h5hc-x8cw
    label: security-advisories@github.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-61686'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2428423'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61686.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-61686'
  - url: 'https://github.com/advisories/GHSA-9583-h5hc-x8cw'
tags:
  - nvd
  - exploit-available
  - ghsa
  - npm
epss: 0.17589
epssPercentile: 0.97037
ingestedAt: '2026-06-29T13:24:34.628Z'
exploits:
  github: 3
  githubRepos:
    - 'https://github.com/FlowerWitch/CVE-2025-61686_docker'
    - 'https://github.com/Kai-One001/React-Router-CVE-2025-61686-'
    - 'https://github.com/boroeurnprach/CVE-2025-61686-PoC'
  checkedAt: '2026-09-25T08:20:48.185Z'
exploitAvailable: true
aliases:
  - GHSA-9583-h5hc-x8cw
ecosystem: npm
---

## Overview

React Router is a router for React. In @react-router/node versions 7.0.0 through 7.9.3, @remix-run/deno prior to version 2.17.2, and @remix-run/node prior to version 2.17.2, if createFileSessionStorage() is being used from @react-router/node (or @remix-run/node/@remix-run/deno in Remix v2) with an unsigned cookie, it is possible for an attacker to cause the session to try to read/write from a location outside the specified session file directory. The success of the attack would depend on the permissions of the web server process to access those files. Read files cannot be returned directly to the attacker. Session file reads would only succeed if the file matched the expected session file format. If the file matched the session file format, the data would be populated into the server side session but not directly returned to the attacker unless the application logic returned specific session information. This issue has been patched in @react-router/node version 7.9.4, @remix-run/deno version 2.17.2, and @remix-run/node version 2.17.2.

## Affected

- `react-router/node >= 7.0.0, < 7.9.4`
- `remix-run/deno < 2.17.2`
- `remix-run/node < 2.17.2`

## Remediation

Upgrade past the affected range:

- `react-router/node 7.9.4`
- `remix-run/deno 2.17.2`
- `remix-run/node 2.17.2`

## Package advisory (CVE-2025-61686)

Affected packages:

- `@react-router/node >= 7.0.0, <= 7.9.3`
- `@remix-run/node <= 2.17.1`
- `@remix-run/deno <= 2.17.1`

Patched in:

- `@react-router/node 7.9.4`
- `@remix-run/node 2.17.2`
- `@remix-run/deno 2.17.2`

Source: https://github.com/advisories/GHSA-9583-h5hc-x8cw
