{"id":"CVE-2025-61686","published":"2026-01-10T02:41:22Z","modified":"2026-07-15T01:25:34Z","title":"React Router has Path Traversal in File Session Storage","vendor":"remix-run","product":"react-router","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.17346,"percentile":0.97184,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/remix-run/react-router/security/advisories/GHSA-9583-h5hc-x8cw","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-61686","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2428423","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61686.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":30.8,"factors":[{"name":"EPSS percentile","points":19.44},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.37}]},"exploitSources":{"pocGithub":{"count":2,"skipped":1,"earliest":"2026-01-15","earliestUrl":"https://github.com/FlowerWitch/CVE-2025-61686_docker","repos":[{"name":"FlowerWitch/CVE-2025-61686_docker","url":"https://github.com/FlowerWitch/CVE-2025-61686_docker","stars":0,"created":"2026-01-15"},{"name":"boroeurnprach/CVE-2025-61686-PoC","url":"https://github.com/boroeurnprach/CVE-2025-61686-PoC","stars":0,"created":"2026-01-21"}]},"first":{"date":"2026-01-15","source":"PoC-in-GitHub","url":"https://github.com/FlowerWitch/CVE-2025-61686_docker"},"provenance":"source"},"vendorSlug":"remix-run","affectedVersions":[{"vendor":"remix-run","product":"react-router","versions":["@react-router/node >= 7.0.0, < 7.9.4","@remix-run/deno < 2.17.2","@remix-run/node < 2.17.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-12T13:58:36.773708Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@react-router/node","vulnerableRanges":[">=7.0.0, <7.9.4"],"patched":["7.9.4"],"from":["GHSA-9583-h5hc-x8cw"],"provenance":"source"},{"ecosystem":"npm","package":"@remix-run/node","vulnerableRanges":["<2.17.2"],"patched":["2.17.2"],"from":["GHSA-9583-h5hc-x8cw"],"provenance":"source"},{"ecosystem":"npm","package":"@remix-run/deno","vulnerableRanges":["<2.17.2"],"patched":["2.17.2"],"from":["GHSA-9583-h5hc-x8cw"],"provenance":"source"}],"summary":{"text":"A path traversal flaw exists in React Router's file session storage, as implemented in @react-router/node (versions 7.0.0 through 7.9.3), and in @remix-run/node and @remix-run/deno before 2.17.2 for Remix v2, where createFileSessionStorage() is used with an unsigned cookie. An attacker with network access and no authentication or user interaction can make the session read and write files outside the configured session directory, with the outcome depending on the web server process's file permissions and the file contents matching the session format.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:18:05Z"},"euvd":{"id":"EUVD-2026-1468","exploited":false,"provenance":"source"}}