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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.84% (percentile 55, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-9583-h5hc-x8cw
- **Published:** 2026-01-08T20:45:07.000Z
- **Modified:** 2026-09-18T21:15:04.608Z

## Who should check

- Projects that depend on npm package @react-router/node (\>= 7.0.0, \< 7.9.4)
- Projects that depend on npm package @remix-run/node (\< 2.17.2)
- Projects that depend on npm package @remix-run/deno (\< 2.17.2)
- Anyone running remix-run react-router @react-router/node \>= 7.0.0, \< 7.9.4; @remix-run/deno \< 2.17.2; @remix-run/node \< 2.17.2

## Description

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 and fixed versions

- npm `@react-router/node`: affected \>= 7.0.0, \< 7.9.4; fixed 7.9.4 (osv)
- npm `@remix-run/node`: affected \< 2.17.2; fixed 2.17.2 (osv)
- npm `@remix-run/deno`: affected \< 2.17.2; fixed 2.17.2 (osv)
- remix-run react-router: @react-router/node \>= 7.0.0, \< 7.9.4; @remix-run/deno \< 2.17.2; @remix-run/node \< 2.17.2 (cvelist)

## Mitigation

- Upgrade @react-router/node to 7.9.4 or later.
- Upgrade @remix-run/node to 2.17.2 or later.
- Upgrade @remix-run/deno to 2.17.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-61686. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-61686.md
Affected: @react-router/node >= 7.0.0, < 7.9.4; @remix-run/node < 2.17.2; @remix-run/deno < 2.17.2
Fixed in: 7.9.4, 2.17.2

Steps:
1. Search this machine and project for @react-router/node (npm), @remix-run/node (npm), @remix-run/deno (npm), remix-run react-router: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-61686 being exploited?

There is no confirmed exploitation: CVE-2025-61686 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.84% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-61686?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-61686?

@react-router/node \>= 7.0.0, \< 7.9.4; @remix-run/node \< 2.17.2; @remix-run/deno \< 2.17.2.

### Is there a fix for CVE-2025-61686?

Yes. Fixed in 7.9.4, 2.17.2. Upgrade @react-router/node to 7.9.4 or later. Upgrade @remix-run/node to 2.17.2 or later. Upgrade @remix-run/deno to 2.17.2 or later.

### How do I check if I'm affected by CVE-2025-61686?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/remix-run/react-router/security/advisories/GHSA-9583-h5hc-x8cw>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-61686>
- other: <https://access.redhat.com/security/cve/CVE-2025-61686>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2428423>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61686.json>
- other: <https://github.com/remix-run/react-router>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-61686>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9583-h5hc-x8cw> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-61686> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-61686>
