CVEfocus › CVE database › CVE-2025-61686

CVE-2025-61686React Router has Path Traversal in File Session Storage

CVSS 9.1 CriticalEPSS 0.8% (higher than 55% of CVEs)Published 2026-01-10Updated 2026-07-15Assigner: GitHub_M

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.

CWE-22

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

3Fixed
41Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 10ipaNot affected
Red Hat Enterprise Linux 10ipa-clientNot affected
Red Hat Enterprise Linux 10ipa-client-commonNot affected
Red Hat Enterprise Linux 10ipa-client-encrypted-dnsNot affected
Red Hat Enterprise Linux 10ipa-client-epnNot affected
Red Hat Enterprise Linux 10ipa-client-sambaNot affected
Red Hat Enterprise Linux 10ipa-commonNot affected
Red Hat Enterprise Linux 10ipa-selinuxNot affected
Red Hat Enterprise Linux 10ipa-selinux-lunaNot affected
Red Hat Enterprise Linux 10ipa-selinux-nfastNot affected
Red Hat Enterprise Linux 10ipa-serverNot affected
Red Hat Enterprise Linux 10ipa-server-commonNot affected
Red Hat Enterprise Linux 10ipa-server-dnsNot affected
Red Hat Enterprise Linux 10ipa-server-encrypted-dnsNot affected
Red Hat Enterprise Linux 10ipa-server-trust-adNot affected
Red Hat Enterprise Linux 10python3-ipaclientNot affected
Red Hat Enterprise Linux 10python3-ipalibNot affected
Red Hat Enterprise Linux 10python3-ipaserverNot affected
Red Hat Enterprise Linux 10python3-ipatestsNot affected
Red Hat Enterprise Linux 9ipaNot affected
Red Hat Enterprise Linux 9ipa-clientNot affected
Red Hat Enterprise Linux 9ipa-client-commonNot affected
Red Hat Enterprise Linux 9ipa-client-encrypted-dnsNot affected
Red Hat Enterprise Linux 9ipa-client-epnNot affected
Red Hat Enterprise Linux 9ipa-client-sambaNot affected
Red Hat Enterprise Linux 9ipa-commonNot affected
Red Hat Enterprise Linux 9ipa-selinuxNot affected
Red Hat Enterprise Linux 9ipa-selinux-lunaNot affected
Red Hat Enterprise Linux 9ipa-selinux-nfastNot affected
Red Hat Enterprise Linux 9ipa-serverNot affected
Red Hat Enterprise Linux 9ipa-server-commonNot affected
Red Hat Enterprise Linux 9ipa-server-dnsNot affected
Red Hat Enterprise Linux 9ipa-server-encrypted-dnsNot affected
Red Hat Enterprise Linux 9ipa-server-trust-adNot affected
Red Hat Enterprise Linux 9python3-ipaclientNot affected
Red Hat Enterprise Linux 9python3-ipalibNot affected
Red Hat Enterprise Linux 9python3-ipaserverNot affected
Red Hat Enterprise Linux 9python3-ipatestsNot affected
Red Hat Enterprise Linux 8dotnet5.0-build-reference-packagesNot affected
Red Hat Enterprise Linux 8pcsNot affected
Red Hat Enterprise Linux 8pcs-snmpNot affected
npm library@react-router/nodeFixed7.9.4GHSA-9583-h5hc-x8cw
npm library@remix-run/denoFixed2.17.2GHSA-9583-h5hc-x8cw
npm library@remix-run/nodeFixed2.17.2GHSA-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.

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.