GHSA-f22v-gfqf-p8f3

Suggest an improvement
Source
https://github.com/advisories/GHSA-f22v-gfqf-p8f3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-f22v-gfqf-p8f3/GHSA-f22v-gfqf-p8f3.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-f22v-gfqf-p8f3
Aliases
Downstream
CGA (4)
Published
2026-06-03T20:33:01Z
Modified
2026-09-08T16:45:05Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
React Router has stored XSS via unescaped Location header in prerendered redirect HTML
Details

When using React Router v7 Framework Mode with Pre-rendering enabled, an improper neutralization of the HTTP Location header value can permit Cross-Site Scripting (XSS) in statically generated HTML files if the redirect location comes from an untrusted source.

[!NOTE] This does not impact your React Router application if you are using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-06-03T20:33:01Z",
    "nvd_published_at":  "2026-06-02T17:16:28Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / react-router

Package

Affected ranges

Type
SEMVER
Events
Introduced
7.5.1
Fixed
7.13.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-f22v-gfqf-p8f3/GHSA-f22v-gfqf-p8f3.json"