CVE-2025-61686React 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.
What to do
Fixed builds are available from npm: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | ipa | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-common | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-epn | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-samba | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-common | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-selinux-luna | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-selinux-nfast | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-common | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-dns | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-trust-ad | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipaclient | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipalib | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipaserver | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipatests | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-common | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-epn | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-samba | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-common | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-selinux-luna | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-selinux-nfast | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-common | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-dns | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-trust-ad | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipaclient | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipalib | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipaserver | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipatests | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet5.0-build-reference-packages | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Not affected | ||
| npm library | @react-router/node | Fixed | 7.9.4 | GHSA-9583-h5hc-x8cw |
| npm library | @remix-run/deno | Fixed | 2.17.2 | GHSA-9583-h5hc-x8cw |
| npm library | @remix-run/node | Fixed | 2.17.2 | GHSA-9583-h5hc-x8cw |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- remix-run react-router: affected: @react-router/node >= 7.0.0, < 7.9.4, @remix-run/deno < 2.17.2, @remix-run/node < 2.17.2
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.