Path traversal in React Router - CVE-2025-61686
Published: June 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to access and modify unintended files.
The vulnerability exists due to improper path restriction in createFileSessionStorage() when processing session data from an unsigned cookie. A remote attacker can supply a crafted cookie value to access and modify unintended files.
Successful exploitation depends on the web server process having permission to access the targeted files. Read data is not returned directly and file reads only succeed if the targeted file matches the expected session file format.
Affected software
Remix
How to mitigate CVE-2025-61686
Remix - update to 2.17.2