{"answers":{"affected":"6 open source packages ship an affected version, including @react-router/node, @remix-run/deno and @remix-run/node. It affects 3 products.","exploited":"There is no known exploitation of CVE-2025-61686 in the wild and no public exploit code.","fix":"Upgrade @react-router/node to 7.9.4 or later.","what":"CVE-2025-61686 is a critical path traversal vulnerability in remix-run react-router, published on 10 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-61686 and fix it if it is affected.\n\nWhat it is: CVE-2025-61686 is a critical path traversal vulnerability in remix-run react-router, published on 10 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-61686 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @react-router/node (npm): affected from 7.0.0; fixed in 7.9.4\n- @react-router/node (npm): affected from 7.0.0; fixed in 7.9.4\n- @remix-run/deno (npm): affected all versions; fixed in 2.17.2\n- @remix-run/deno (npm): affected all versions; fixed in 2.17.2\n- @remix-run/node (npm): affected all versions; fixed in 2.17.2\n- @remix-run/node (npm): affected all versions; fixed in 2.17.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-61686/ (Markdown: https://insights.sbomify.com/CVE-2025-61686/index.md)","id":"CVE-2025-61686","markdown":"https://insights.sbomify.com/CVE-2025-61686/index.md","name":"CVE-2025-61686","record":{"aliases":["GHSA-9583-h5hc-x8cw"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"React Router library","requires_auth":"none","summary":"Attackers can read or write files outside the session directory via path traversal in file session storage when using unsigned cookies.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"react-router\\/node","vendor":"shopify"},{"product":"remix-run\\/deno","vendor":"shopify"},{"product":"remix-run\\/node","vendor":"shopify"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-01-15","github_poc":3,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-01-15T09:09:17Z","kind":"github_poc","ref":"https://github.com/FlowerWitch/CVE-2025-61686_docker","stars":0,"title":"CVE-2025-61686复现的dockerfile与poc"},{"date":"2026-01-16T09:25:29Z","kind":"github_poc","ref":"https://github.com/Kai-One001/React-Router-CVE-2025-61686-","stars":0,"title":null},{"date":"2026-01-21T08:48:47Z","kind":"github_poc","ref":"https://github.com/boroeurnprach/CVE-2025-61686-PoC","stars":0,"title":"React Router's createFileSessionStorage() in certain versions allows unsigned cookies to be manipulated, enabling file system access outside the session directory."}],"tier":"poc_unverified"},"has_fix":true,"headline":"React Router has Path Traversal in File Session Storage","id":"CVE-2025-61686","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":6,"n_references":1,"next":{"headline":"FlowiseAI/Flosise has File Upload vulnerability","id":"CVE-2025-61687"},"packages":[{"ecosystem":"npm","fixed":["7.9.4"],"introduced":["7.0.0"],"last_affected":[],"package":"@react-router/node","purl":null,"source":"GHSA-9583-h5hc-x8cw"},{"ecosystem":"npm","fixed":["7.9.4"],"introduced":["7.0.0"],"last_affected":[],"package":"@react-router/node","purl":"pkg:npm/%40react-router/node","source":"GHSA-9583-h5hc-x8cw"},{"ecosystem":"npm","fixed":["2.17.2"],"introduced":["0"],"last_affected":[],"package":"@remix-run/deno","purl":null,"source":"GHSA-9583-h5hc-x8cw"},{"ecosystem":"npm","fixed":["2.17.2"],"introduced":["0"],"last_affected":[],"package":"@remix-run/deno","purl":"pkg:npm/%40remix-run/deno","source":"GHSA-9583-h5hc-x8cw"},{"ecosystem":"npm","fixed":["2.17.2"],"introduced":["0"],"last_affected":[],"package":"@remix-run/node","purl":null,"source":"GHSA-9583-h5hc-x8cw"},{"ecosystem":"npm","fixed":["2.17.2"],"introduced":["0"],"last_affected":[],"package":"@remix-run/node","purl":"pkg:npm/%40remix-run/node","source":"GHSA-9583-h5hc-x8cw"}],"prev":{"headline":"Mastra Docs MCP Server `@mastra/mcp-docs-server` Leads to Information Exposure","id":"CVE-2025-61685"},"products":["react-router"],"published":"2026-01-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["remix-run"]},"summary":"Attackers can read or write files outside the session directory via path traversal in file session storage when using unsigned cookies.","url":"https://insights.sbomify.com/CVE-2025-61686/"}