CVE-2025-61686

Path Traversal in React Router: The Cookie That Ate Your Filesystem

Alon Barad
Alon Barad
Software Engineer

Jan 15, 2026·5 min read·6 visits

Executive Summary (TL;DR)

If you are using `@react-router/node` or `@remix-run/node` with file-based session storage and have not configured signed cookies (secrets), your application trusts the client-provided session ID implicitly. Attackers can craft malicious cookie values containing directory traversal sequences (`../../`) to escape the session directory. This grants them the ability to delete files (DoS) or overwrite them with JSON data, leading to potential data corruption or application compromise.

A critical path traversal vulnerability in React Router and Remix's file-based session storage allows remote attackers to delete or overwrite arbitrary files on the server by manipulating unsigned session cookies.

Fix Analysis (1)

Technical Appendix

CVSS Score
9.1/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
EPSS Probability
0.06%
Top 81% most exploited

Affected Systems

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

Affected Versions Detail

Product
Affected Versions
Fixed Version
@react-router/node
Remix/React Router
7.0.0 - 7.9.37.9.4
@remix-run/node
Remix
< 2.17.22.17.2
@remix-run/deno
Remix
< 2.17.22.17.2
AttributeDetail
CWE IDCWE-22 (Path Traversal)
CVSS v3.19.1 (Critical)
Attack VectorNetwork (Cookies)
ImpactIntegrity (H), Availability (H)
Exploit StatusPoC Available
EPSS Score0.00061
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Vulnerability Timeline

Fix committed to repository
2025-10-06
CVE Published & Patch Released
2026-01-10