CVE-2025-61686: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in remix-run react-router
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.
AI Analysis
Technical Summary
This vulnerability (CVE-2025-61686) involves improper limitation of a pathname to a restricted directory (CWE-22) in remix-run react-router components. Specifically, when using createFileSessionStorage() with an unsigned cookie, an attacker can cause the session mechanism to access files outside the designated session file directory. The attack's success depends on the server process's permissions. While direct file content disclosure is not possible, if an attacker can supply a file matching the session file format, they may influence server-side session data. The vulnerability affects @react-router/node versions >=7.0.0 <7.9.4, @remix-run/deno versions <2.17.2, and @remix-run/node versions <2.17.2. Official patches are available in @react-router/node 7.9.4 and @remix-run/deno and @remix-run/node 2.17.2. The CVSS v3.1 score is 9.1 (critical), reflecting network attack vector, low complexity, no privileges required, no user interaction, unchanged scope, no confidentiality impact, high integrity and availability impact.
Potential Impact
An attacker can exploit this vulnerability to cause the session storage to read or write files outside the intended session directory, potentially modifying server-side session data. Direct disclosure of file contents to the attacker is not possible. The impact depends on the permissions of the web server process and the application logic that uses session data. This can lead to integrity and availability impacts on the affected system.
Mitigation Recommendations
A fix is available and has been released in @react-router/node version 7.9.4, @remix-run/deno version 2.17.2, and @remix-run/node version 2.17.2. Users should upgrade to these versions or later to remediate this vulnerability. Patch status is confirmed by the vendor advisory. No additional mitigation steps are indicated in the advisory.
CVE-2025-61686: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in remix-run react-router
Description
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.
CVSS v3.1
Score 9.1critical
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2025-61686) involves improper limitation of a pathname to a restricted directory (CWE-22) in remix-run react-router components. Specifically, when using createFileSessionStorage() with an unsigned cookie, an attacker can cause the session mechanism to access files outside the designated session file directory. The attack's success depends on the server process's permissions. While direct file content disclosure is not possible, if an attacker can supply a file matching the session file format, they may influence server-side session data. The vulnerability affects @react-router/node versions >=7.0.0 <7.9.4, @remix-run/deno versions <2.17.2, and @remix-run/node versions <2.17.2. Official patches are available in @react-router/node 7.9.4 and @remix-run/deno and @remix-run/node 2.17.2. The CVSS v3.1 score is 9.1 (critical), reflecting network attack vector, low complexity, no privileges required, no user interaction, unchanged scope, no confidentiality impact, high integrity and availability impact.
Potential Impact
An attacker can exploit this vulnerability to cause the session storage to read or write files outside the intended session directory, potentially modifying server-side session data. Direct disclosure of file contents to the attacker is not possible. The impact depends on the permissions of the web server process and the application logic that uses session data. This can lead to integrity and availability impacts on the affected system.
Mitigation Recommendations
A fix is available and has been released in @react-router/node version 7.9.4, @remix-run/deno version 2.17.2, and @remix-run/node version 2.17.2. Users should upgrade to these versions or later to remediate this vulnerability. Patch status is confirmed by the vendor advisory. No additional mitigation steps are indicated in the advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-09-29T20:25:16.182Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2025-61686","vendor":"Red Hat"}]
Threat ID: 6961c40f19784dcf52ace864
Added to database: 01/10/2026, 03:14:23 UTC
Last enriched: 07/19/2026, 18:33:42 UTC
Last updated: 09/10/2026, 19:36:51 UTC
Views: 3762
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.