Remix-run react-router
React Router has XSS Vulnerability
React Router is a router for React. In @remix-run/react versions 1.15.0 through 2.17.0. and react-router versions 7.0.0 through 7.8.2, a XSS vulnerability exists in in React Router's meta()/<Meta> APIs in Framework Mode when generating script:ld+json tags which could allow arbitrary JavaScript execution during SSR if untrusted content is used to generate the tag. There is no impact if the application is being used in Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>). This issue has been patched in @remix-run/react version 2.17.1 and react-router version 7.9.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- @remix-run/react >= 1.15.0, < 2.17.1
- react-router >= 7.0.0, < 7.9.0
Fixed in 2.17.1, 7.9.0
Mitigation
Upgrade react-router to 2.17.1 or 7.9.0 or later.
References
- Vendor advisory github.com/remix-run/react-router/security/adv…
Timeline
Days relative to CVE publicationFirst public PoC 3.2 days after publication; not in CISA KEV. First PoC: boroeurnprach/CVE-2025-59057-PoC (created 13 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| boroeurnprach/CVE-2025-59057-PoC | 13 Jan 2026 +3.2 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /vuln
- Seen in
- 1 repo: boroeurnprach/CVE-2025-59057-PoC
- Evidence
- boroeurnprach/CVE-2025-59057-PoC/app/routes.ts:5
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/vuln(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-59057 remix-run react-router exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/vuln"; reference:url,poc.griffinguard.io/cve/CVE-2025-59057; classtype:web-application-attack; sid:9255892; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: remix-run react-router exploit attempt (CVE-2025-59057)
id: gg-pocmon-cve-2025-59057-9255892
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-59057. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-59057
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/vuln'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.59057