CVE-2025-61686CWE-22

React Router has Path Traversal in File Session Storage

Critical · published January 10, 2026

CVSS v3.1
9.1
EPSS
17%
Percentile
97.1
In the wild
Unconfirmed
What it is

🚨 A sneaky flaw in React Router lets attackers wiggle their way into session files with a mere unsigned cookie! 💥 Think of it like a hotel manager who leaves the back door open for delivery personnel, allowing anyone to peek into guest rooms if they bring a convincing enough package. In this case, the attacker can manipulate session storage to read or write from unauthorized directories, depending on server permissions. An attacker could exploit this by reading or manipulating session data, potentially leading to unauthorized access to sensitive information or altering the session state. Although direct retrieval of sensitive files isn't feasible without specific app logic, the risk of sensitive data exposure is absolutely devastating if mismanaged!

Put simply

Think of it like a hotel manager who leaves the back door open for delivery personnel, allowing anyone to peek into guest rooms if they bring a convincing enough package. In this case, the attacker can manipulate session storage to read or write from unauthorized directories, depending on server permissions. This vulnerability in @react-router/node versions 7.0.0 through 7.9.3 allows attackers to cause the session to access files outside the specified directory through the use of createFileSessionStorage() with unsigned cookies, posing a significant security risk during session handling.

What to do

An attacker could exploit this by reading or manipulating session data, potentially leading to unauthorized access to sensitive information or altering the session state. Although direct retrieval of sensitive files isn't feasible without specific app logic, the risk of sensitive data exposure is absolutely devastating if mismanaged! Upgrade @react-router/node to version 7.9.4, @remix-run/deno to version 2.17.2, and @remix-run/node to version 2.17.2 immediately to patch this vulnerability. Additionally, ensure the use of signed cookies for session storage to bolster security. You've got this! With these steps, you'll be locking down your session storage tighter than a drum! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.17346 · 97.1th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-01-10T02:41Z
EPSS history
Timeline
  • 10 JAN 02:41Z
    React Router has Path Traversal in File Session Storage
    cvelistv5