Loading...
Skip to main content

CVE-2025-61686 — React Router has Path Traversal in...

CRITICAL

React Router has Path Traversal in File Session Storage

Published January 8, 2026Updated September 18, 2026Source: osv

Summary

If applications use `createFileSessionStorage()` from `@react-router/node` (or `@remix-run/node`/`@remix-run/deno` in Remix v2) with an [**unsigned cookie**](https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies), 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.

Advisory Timeline

  • First published January 8, 2026 (277 days ago).
  • Last revised September 18, 2026 — 253 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @remix-run/node to 2.17.2 or later
npm install @remix-run/node@2.17.2
npm
Update @react-router/node to 7.9.4 or later
npm install @react-router/node@7.9.4
npm
Update @remix-run/deno to 2.17.2 or later
npm install @remix-run/deno@2.17.2

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: npm (3).

PackageEcosystemAffectedFixed In
@remix-run/node
npm
All versions2.17.2
@react-router/node
npm
All versions7.9.4
@remix-run/deno
npm
All versions2.17.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Frequently Asked Questions

What is CVE-2025-61686?
React Router has Path Traversal in File Session Storage This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2025-61686?
CVE-2025-61686 affects @remix-run/node, @react-router/node and @remix-run/deno. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-61686 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-9583-h5hc-x8cw

Related CVEs

  • CVE-2026-107722
    CRITICAL

    fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion

  • CVE-2026-108261
    CRITICAL

    TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies