Remix-run react-router
React Router has Path Traversal in File Session Storage
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- @react-router/node >= 7.0.0, < 7.9.4
- @remix-run/deno < 2.17.2
- @remix-run/node < 2.17.2
Fixed in 7.9.4, 2.17.2
Mitigation
Upgrade react-router to 7.9.4 or 2.17.2 or later.
References
- Vendor advisory github.com/remix-run/react-router/security/adv…
Timeline
Days relative to CVE publicationFirst public PoC 5.3 days after publication; not in CISA KEV. First PoC: FlowerWitch/CVE-2025-61686_docker (created 15 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.3 PoCs
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| FlowerWitch/CVE-2025-61686_docker | 15 Jan 2026 +5.3 d | 0 | PoC |
| Kai-One001/React-Router-CVE-2025-61686- | 16 Jan 2026 +6.3 d | 0 | PoC |
| boroeurnprach/CVE-2025-61686-PoC | 21 Jan 2026 +11 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 3 PoC reposGET /
- Key headers
Cookie: session=IkFBQUEuLi8uLi8uLi90bXAvZmxvd2VyIgCookie: session=IkFBQUEuLi8uLi8uLi8uLi90bXAvZmxvd2Vyd2l0Y2gi.L2ffutps16%2B3ENWvuWy4ZCouT%2BPSVeqmQOeaW%2FjziXg- Ports
- 3001
- Seen in
- 1 repo: FlowerWitch/CVE-2025-61686_docker
- Evidence
- FlowerWitch/CVE-2025-61686_docker/README.md:29 FlowerWitch/CVE-2025-61686_docker/README.md:86
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3001] (msg:"GG PoC-Monitor CVE-2025-61686 remix-run react-router exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.header; content:"Cookie: session=IkFBQUEuLi8uLi8uLi90bXAvZmxvd2VyIg"; nocase; http.header; content:"Cookie: session=IkFBQUEuLi8uLi8uLi8uLi90bXAvZmxvd2Vyd2l0Y2gi.L2ffutps16%2B3ENWvuWy4ZCouT%2BPSVeqmQOeaW%2FjziXg"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2025-61686; classtype:web-application-attack; sid:9322174; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: remix-run react-router exploit attempt (CVE-2025-61686)
id: gg-pocmon-cve-2025-61686-9322174
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-61686. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-61686
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.61686