You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request: backport fix to v7 for GHSA-qwww-vcr4-c8h2 #15348
Reacted by chordfireplace, Yaroslav-Hapon, Abhishek Prashant, Benjamin Schirmer, Sergey Krasnoyarov, Verbetchii Dmitrii, Nick Young, Antoine Lamirault, Daria Veretennikova, Gabriel Conti and 28 more
react-router 7.12.0 - 8.2.0
Severity: high
React Router: RSC Mode CSRF Bypass Allows Action Execution Before 400 Response - GHSA-qwww-vcr4-c8h2
fix available via npm audit fix --force
Will install react-router@8.3.0, which is a breaking change
node_modules/react-router
1 high severity vulnerability`
Reacted by Yaroslav-Hapon, Verbetchii Dmitrii, hx-tro, Benjamin Schirmer, Abhishek Prashant, andrzej-mroczek, Michael, Sergey Krasnoyarov, Lordsirius73, Vincent and 8 more
I'm facing the same issue as well. Upgrading to React Router v8 isn't an option for us at the moment since it requires moving to React 19. Is there any update on whether this fix will be backported to the v7, or an estimated timeline for the release? Thanks!
I've tried to cherry pick the commit from the main branch that fixes the issue (#15311) and apply it to the v7branch. The fix could be applied and from what I can see the code did not change between v7 and v8 so the exact same fix should be compatible.
So it does look like a backport is possible. The question is just when a contributor or owner has the time to do it, test it and create a new v7 release.
Maybe @jacob-ebey who created the v8 PR could have a look? That would be very much appreciated :)
Reacted by James Restall, Nikita A. Koroed and Fabian Hanggi
Hey all, just so it's clear this security issue is only for the unstable RSC features, as mentioned in the advisory:
This only affects your application if you are using the unstable RSC APIs
I'll surface this to the team, but I believe that's the reason we didn't backport this to v7: this is a security issue with an unstable feature. If you are shipping unstable RSC features to prod you should update to v8. If you are not using our unstable RSC features you are not vulnerable.
Unfortunately it affects the build pipeline when checking if any version has known vulnerabilities. The audit commands don't differentiate about used or unused code of the package, it just sees an advisory and fails. So a fix is useful to all users that run v7 and have strict audit checks in the build pipeline. Even if hardly anybody will use the affected experimental feature.
Reacted by James Restall, Fabian Hanggi, Vincent and Shubhankar Malik
I have a quick question. This one is still flagged for me: GHSA-qwww-vcr4-c8h2
Is there a step needed to pick up the new version and avoid the vulnerability?
Yeah, I'm having the same question. I opened up a PR to update GitHub's advisory which is what impacts these audits and automatic fixes. Hopefully this PR gets merged soon: github/advisory-database#8868
Reacted by Fabian Hanggi, Ben Graver, James Restall and Abhishek Prashant
Hi @brookslybrand
Thank you so much!!!
I have a quick question. This one is still flagged for me: GHSA-qwww-vcr4-c8h2
Is there a step needed to pick up the new version and avoid the vulnerability?
Yeah, I'm having the same question. I opened up a PR to update GitHub's advisory which is what impacts these audits and automatic fixes. Hopefully this PR gets merged soon: github/advisory-database#8868
Could this please be prioritized? i cannot deploy anything anymore. 10 of my apps are stuck with other vulnerabilities but this one forces me to go to react-router 8 which forces me to react 19 which is a no go. if you could please make 7.18.2 fix the vulnerability that would be great. thank you very much.
Also, you're not blocked. 7.18.2 does fix the vulnerability, and you were only vulnerable previously if you used the unstable APIs. This is just causing problems with audit commands, which you can always override.
Also, you're not blocked. 7.18.2 does fix the vulnerability, and you were only vulnerable previously if you used the unstable APIs. This is just causing problems with audit commands, which you can always override.
Thank you for the reply. I cannot disable the audit steps in our pipelines to go to production. This is out of my hands. They all fail now. So if the github advisory could be fixed that would be awesome. But i understand you are saying you are not in charge of accepting the fix for the advisory part. i will just have to wait for that. Thank you very much.
This absolutely does not effect v6, we did not have have these APIs in v6 and the advisory only covers v7 and v8 ranges: GHSA-qwww-vcr4-c8h2
@shubhankarmalik you linked to an unrelated issue. That link links to GHSA-jjmj-jmhj-qwj2, so please don't continue discussions about unrelated issues in this thread.
I'm closing this issue since we fixed this in 7.18.2. It's on GitHub advisory to merge this PR at this point to get the ranges updated/propagated: github/advisory-database#8868
Activity
cjz9032 commentedon Jul 27, 2026
same issue here, please help to fix the issue
`npm audit report
react-router 7.12.0 - 8.2.0
Severity: high
React Router: RSC Mode CSRF Bypass Allows Action Execution Before 400 Response - GHSA-qwww-vcr4-c8h2
fix available via
npm audit fix --forceWill install react-router@8.3.0, which is a breaking change
node_modules/react-router
1 high severity vulnerability`
nickwb commentedon Jul 27, 2026
Agreed, this currently forces a major version bump to react 19, we would be very thankful for a backport
omgovich commentedon Jul 27, 2026
verbetchii commentedon Jul 27, 2026
The same issue, only pnpm ignore audit saved me
Please fix
miguelzapataj commentedon Jul 27, 2026
Hi Team,
Is there an expected date for this issue to be resolved?
rdevault-propel commentedon Jul 27, 2026
fhanggi commentedon Jul 27, 2026
Hi
Please fix this in 7 and don't force us to go 8 which forces us to upgrade to react 19
rdevault-propel commentedon Jul 27, 2026
I am not part of the dev team for this. I indirectly created a link here by accident when I referenced this issue in an unrelated PR to make changes.
Neevea8880 commentedon Jul 28, 2026
I'm facing the same issue as well. Upgrading to React Router v8 isn't an option for us at the moment since it requires moving to React 19. Is there any update on whether this fix will be backported to the v7, or an estimated timeline for the release? Thanks!
ccMatrix commentedon Jul 28, 2026
I've tried to cherry pick the commit from the
mainbranch that fixes the issue (#15311) and apply it to thev7branch. The fix could be applied and from what I can see the code did not change between v7 and v8 so the exact same fix should be compatible.So it does look like a backport is possible. The question is just when a contributor or owner has the time to do it, test it and create a new v7 release.
Maybe @jacob-ebey who created the v8 PR could have a look? That would be very much appreciated :)
jrestall commentedon Jul 28, 2026
According to the security policy 7.x will get security updates. If someone has time to create a PR that might help the team.
https://github.com/remix-run/react-router/security#security-policy
miguelzapataj commentedon Jul 28, 2026
Hi @jacob-ebey
Could you take a look? It would be much appreciated!
brookslybrand commentedon Jul 28, 2026
Hey all, just so it's clear this security issue is only for the unstable RSC features, as mentioned in the advisory:
I'll surface this to the team, but I believe that's the reason we didn't backport this to v7: this is a security issue with an unstable feature. If you are shipping unstable RSC features to prod you should update to v8. If you are not using our unstable RSC features you are not vulnerable.
ccMatrix commentedon Jul 28, 2026
Unfortunately it affects the build pipeline when checking if any version has known vulnerabilities. The audit commands don't differentiate about used or unused code of the package, it just sees an advisory and fails. So a fix is useful to all users that run v7 and have strict audit checks in the build pipeline. Even if hardly anybody will use the affected experimental feature.
brookslybrand commentedon Jul 28, 2026
Alright, backported in #15353
I also updated the ranges on our advisory. I believe GHSA-qwww-vcr4-c8h2 should pick that up and unblock everyone. I'll keep this open until then.
miguelzapataj commentedon Jul 29, 2026
Hi @brookslybrand
Thank you so much!!!
I have a quick question. This one is still flagged for me: GHSA-qwww-vcr4-c8h2
Is there a step needed to pick up the new version and avoid the vulnerability?
brookslybrand commentedon Jul 29, 2026
Yeah, I'm having the same question. I opened up a PR to update GitHub's advisory which is what impacts these audits and automatic fixes. Hopefully this PR gets merged soon: github/advisory-database#8868
fhanggi commentedon Jul 30, 2026
Could this please be prioritized? i cannot deploy anything anymore. 10 of my apps are stuck with other vulnerabilities but this one forces me to go to react-router 8 which forces me to react 19 which is a no go. if you could please make 7.18.2 fix the vulnerability that would be great. thank you very much.
brookslybrand commentedon Jul 30, 2026
@fhanggi I'm not sure what else I can do, this is in GitHub's hands to merge this update: github/advisory-database#8868
Also, you're not blocked. 7.18.2 does fix the vulnerability, and you were only vulnerable previously if you used the unstable APIs. This is just causing problems with audit commands, which you can always override.
fhanggi commentedon Jul 30, 2026
Thank you for the reply. I cannot disable the audit steps in our pipelines to go to production. This is out of my hands. They all fail now. So if the github advisory could be fixed that would be awesome. But i understand you are saying you are not in charge of accepting the fix for the advisory part. i will just have to wait for that. Thank you very much.
mojiAh commentedon Jul 31, 2026
@brookslybrand Any plan to backport it to V6?
ccMatrix commentedon Jul 31, 2026
The advisory is for v7 and v8 only. Since v6 is not affected by it, there is no reason for a backport.
shubhankarmalik commentedon Jul 31, 2026
react-router-dom Version v6.30.4 also has the vulnerability.
https://socket.dev/npm/package/react-router-dom/alerts/6.30.4?alert_name=mediumCVE
This is the open issue.
#15344
brookslybrand commentedon Jul 31, 2026
No @mojiAh and @shubhankarmalik
@shubhankarmalik you linked to an unrelated issue. That link links to GHSA-jjmj-jmhj-qwj2, so please don't continue discussions about unrelated issues in this thread.
brookslybrand commentedon Aug 4, 2026
I'm closing this issue since we fixed this in 7.18.2. It's on GitHub advisory to merge this PR at this point to get the ranges updated/propagated: github/advisory-database#8868