CVE-2026-53666: React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydration
If application code allows attacker supplied input to overwrite certain aspects of errors caught by the SSR process, then it was possible for attacker to trigger unexpected constructor execution on the client which would trigger outbound network traffic. This is only possible with very specific (and unlikely) application layer code. [!NOTE] This does not impact your application if you are using Declarative Mode.
Published Jul 23, 2026
Affected packages
react-router
- Ecosystem
- npm
- Affected
- >= 6.4.0, < 7.18.0
- Fixed in
- 7.18.0
- Check
npm ls react-router
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
If application code allows attacker supplied input to overwrite certain aspects of errors caught by the SSR process, then it was possible for attacker to trigger unexpected constructor execution on the client which would trigger outbound network traffic. This is only possible with very specific (and unlikely) application layer code.
[!NOTE] > This does not impact your application if you are using Declarative Mode. This only impacts Framework Mode and Data Mode applications doing manual SSR/hydration
Credited to yoyomiski.
References
- https://github.com/remix-run/react-router/security/advisories/GHSA-337j-9hxr-rhxg
- https://github.com/remix-run/react-router/pull/15175
- https://github.com/remix-run/react-router/commit/9d22943fd46c8ae4b08236425fa3549e10e9ad1a
- https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7180
- https://github.com/remix-run/react-router/releases/tag/[email protected]
- https://github.com/advisories/GHSA-337j-9hxr-rhxg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-55685
React Router: Unauthenticated Denial of Service via Inefficient Route Matching
high8.7Jul 24, 2026GHSA-qwww-vcr4-c8h2
React Router: RSC Mode CSRF Bypass Allows Action Execution Before 400 Response
high7.1Jul 24, 2026CVE-2026-53667
React Router: RSCErrorHandler Missing Protocol Validation (XSS)
medium6.9Jul 23, 2026CVE-2026-53668
React Router: Open redirect leading to XSS
medium6.9Jul 23, 2026CVE-2026-53669
React Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)
medium5.1Jul 23, 2026CVE-2026-53663
React Router: Potential CSRF via PUT/PATCH/DELETE document requests
low3.1Jun 15, 2026
