CVE-2025-61686
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedReact 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA path traversal vulnerability exists in React Router's and Remix's file session storage. When createFileSessionStorage() is used with an unsigned (untrusted) cookie, attackers can manipulate the session to read or write files outside the intended session directory. Successful exploitation depends on the web server process permissions and requires the targeted file to match the expected session file format.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 7.0.0, < 7.9.4< 2.17.2< 2.17.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed package versionRun 'npm list @react-router/node' or 'npm list @remix-run/node' or 'npm list @remix-run/deno' depending on your framework to see the exact version installedAffected if The version is >= 7.0.0 and < 7.9.4 for @react-router/node, or < 2.17.2 for @remix-run/node or @remix-run/deno
-
Locate createFileSessionStorage usageSearch your codebase for 'createFileSessionStorage' to see if this function is being used to handle sessionsAffected if createFileSessionStorage is in use and the version is in the affected range
-
Verify session cookie signing configurationExamine your session configuration where createFileSessionStorage is called and check if a 'cookie' option with a 'secrets' or 'signed' property is configuredAffected if No secret key is configured for the session cookie, meaning cookies are unsigned and can be tampered with by attackers
-
Inspect session cookie handling in requestsCheck how session data is read in your routes using getSession() and commitSession() - verify if the session cookie value comes directly from an unsigned sourceAffected if Session cookies are not cryptographically signed and their values can be externally manipulated
You are affected if you use a vulnerable version of @react-router/node, @remix-run/node, or @remix-run/deno with createFileSessionStorage and your session cookies are not signed with a secret key.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2.17.27.9.4
Upgrade to @react-router/node 7.9.4, @remix-run/node 2.17.2, or @remix-run/deno 2.17.2. Additionally, ensure signed cookies are used in production rather than unsigned cookies to prevent tampering.
@react-router/[email protected] OR @remix-run/[email protected] OR @remix-run/[email protected]
- Identify which React Router or Remix Run package is in use (@react-router/node, @remix-run/node, or @remix-run/deno)
- Run the appropriate package manager update command: npm install @react-router/[email protected], npm install @remix-run/[email protected], or npm install @remix-run/[email protected]
- Verify the updated version is installed by checking package.json or running npm list <package-name>
- Test the application to ensure session handling works correctly after the upgrade
- Ensure session cookies are signed in production (the vulnerability only affects unsigned cookies)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation1.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,224.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-61686 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-61686 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data