{"id":"CVE-2026-139994","aliases":["CVE-2026-139994","GHSA-mjj8-rxh9-q8f5"],"related":[],"kind":"vulnerability","state":"published","title":"React Router: Cross-Site Scripting (XSS) - escapeHtml (JS-escape) used in HTML-attribute context for <meta refresh>","summary":"React Router is a router for React. From 7.11.0 until 7.18.4 and 8.4.0, react Router's unstable RSC Data mode and RSC Framework mode render redirects containing an attacker-controlled redirect destination into server-generated HTML without safely escaping the value. During server-side HTML rendering, crafted redirect input can break out of its HTML attribute context and execute JavaScript in the application's origin. This issue is fixed in versions 7.18.4 and 8.4.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"React Router is a router for React. From 7.11.0 until 7.18.4 and 8.4.0, react Router's unstable RSC Data mode and RSC Framework mode render redirects containing an attacker-controlled redirect destination into server-generated HTML without safely escaping the value. During server-side HTML rendering, crafted redirect input can break out of its HTML attribute context and execute JavaScript in the application's origin. This issue is fixed in versions 7.18.4 and 8.4.0.","source":"cvelist"},{"lang":"en","text":"React Router’s unstable React Server Components support contains a cross-site scripting vulnerability when rendering redirects containing untrusted input, potentially allowing JavaScript execution in the application’s origin.\n\n**Affected Modes:** RSC Data (unstable) and RSC Framework (unstable).\n\nExploitation requires an application to use attacker-controlled input as a redirect destination during server-side HTML rendering.","format":"markdown","source":"ghsa"}],"published":"2026-11-30T20:57:32.630Z","modified":"2026-12-01T14:18:18.350Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 7.11.0, < 7.18.4","status":"affected"},{"version":">= 8.0.0, < 8.4.0","status":"affected"}],"vendor":"remix-run","product":"react-router","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.4.0"}],"ecosystem":"npm","package":"react-router","purl":"pkg:npm/react-router","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"7.11.0","status":"affected","fixed":"7.18.4"}],"ecosystem":"npm","package":"react-router","purl":"pkg:npm/react-router","source":"ghsa"}],"references":[{"url":"https://github.com/remix-run/react-router/security/advisories/GHSA-mjj8-rxh9-q8f5","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remix-run/react-router/pull/15491","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remix-run/react-router/pull/15492","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remix-run/react-router/commit/c58d7152420614d6879db851aa1c74f826ddd573","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remix-run/react-router/commit/e0c6b5bce96f249a71b1fc395000c6b2742c57d7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v840","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7184","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remix-run/react-router/releases/tag/react-router@7.18.4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remix-run/react-router/releases/tag/react-router@8.4.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139994","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/remix-run/react-router","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-12-01T13:30:30.376Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139994","url":"https://www.cve.org/CVERecord?id=CVE-2026-139994","licence":"CVE Terms of Use","modified":"2026-12-01T13:55:04.076Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mjj8-rxh9-q8f5","url":"https://github.com/advisories/GHSA-mjj8-rxh9-q8f5","licence":"CC-BY-4.0","modified":"2026-12-01T02:45:04.351Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139994","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139994","licence":"Public domain","modified":"2026-12-01T14:18:18.350Z"}],"updatedAt":"2026-12-01T14:32:16.692Z","epss":{"score":0.00627,"percentile":0.51406,"date":"2026-12-01T12:00:22.000Z"}}