CVE-2025-61686: Path Traversal in React Router and Remix File Session Storage
- Vendor
- Shopify
CVE-2025-61686 is a path traversal vulnerability in createFileSessionStorage() affecting @react-router/node versions 7.0.0 through 7.9.3 and @remix-run/node and @remix-run/deno versions before 2.17.2. When file session storage uses an unsigned cookie, an attacker can manipulate the session identifier to cause session operations to read or write outside the configured session directory. Access is constrained by the web-server process's filesystem permissions. Reads succeed only when the target file matches the expected session-file format, and the resulting data enters the server-side session rather than being returned directly to the attacker.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise filesystem integrity through unauthorized writes outside the session directory and potentially compromise confidentiality through unauthorized reads. Both are limited by the web-server process's filesystem permissions. Disclosure additionally requires a target file in the expected session-file format and application logic that exposes the loaded session information; the vulnerability does not directly return arbitrary file contents.
Mitigation
If you can’t patch tonight, do this now.
Configure createFileSessionStorage() to use signed cookies to prevent manipulation of session identifiers. Apply least-privilege filesystem permissions to the web-server process and restrict its access to files outside the configured session directory.
Remediation
Patch, then assume compromise.
Upgrade @react-router/node to version 7.9.4 or later. For Remix v2, upgrade @remix-run/node and @remix-run/deno, as applicable, to version 2.17.2 or later.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-61686 exploited in the wild?
- As of Oct 22, 2026, Mallory has no reports of CVE-2025-61686 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-61686?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2025-61686, the earliest disclosed Jan 15, 2026.
- Is there a patch for CVE-2025-61686?
- Upgrade @react-router/node to version 7.9.4 or later. For Remix v2, upgrade @remix-run/node and @remix-run/deno, as applicable, to version 2.17.2 or later.
- What products are affected by CVE-2025-61686?
- Shopify React-Router/Node, Shopify Remix-Run/Deno, and Shopify Remix-Run/Node.
- How severe is CVE-2025-61686?
- CVE-2025-61686 has a CVSS v3.1 score of 9.1 (Critical) and an EPSS score of 0.84% (55th percentile) as of Oct 22, 2026.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.