[GHSA-f22v-gfqf-p8f3] React Router has stored XSS via unescaped Location header in prerendered redirect HTML - #9372
Open
HF-CYGG wants to merge 1 commit into
Conversation
Collaborator
|
Hi there @brophdawg11! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository. This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory |
github-actions
Bot
changed the base branch from
main
to
HF-CYGG/advisory-improvement-9372
September 5, 2026 21:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
Comments
Add the missing upstream fix commit for GHSA-f22v-gfqf-p8f3.
Commit
ea28e66926460656815cee9b7f2dfaa872513a8cis the final merged commit for upstream PR #14880, "Escape locations in prerendered redirect HTML".In
packages/react-router-dev/vite/plugin.ts, the commit appliesescapeHtml()to redirect locations before interpolating them into the generated HTML title, meta-refresh content, link, and visible redirect text. It also escapes the source path in both redirect-generation paths. These are the pre-rendered HTML outputs described by this advisory.The changeset is for
@react-router/dev, and the React Router 7.13.2 release changelog explicitly lists PR #14880 under that package. The officialreact-router@7.13.2release tag contains the merged commit, matching the advisory's recorded patched release line.Supporting sources:
The proposed advisory change only adds the merged fix commit reference. No changes to package attribution, version ranges, severity, CWE, or the advisory description are proposed.