-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: react-router seems to depend on vulnerable versions of path-to-regexp #11975
Comments
This is an older, unsupported version of the library, so we cannot fix this. The changes to The advisory gives mitigation steps, and this only applies to specific path patterns. If you're only using this client-side, there is no practical vulnerability at all. |
There is now a v1.9.0 version of path-to-regexp that includes the security fix: https://github.com/pillarjs/path-to-regexp/releases/tag/v1.9.0 |
I've created a PR against v5 here: #11980 |
Can you check this https://github.com/pillarjs/path-to-regexp/releases/tag/v1.9.0? @timdorr |
Please review this one #11980 - we kinda stuck in our pipelines, and not ready to update to 6.0.0 of react-router-dom Appreciate it! |
This isn't a bug in the library. It's caused by something we're depending on, which they've released a newer version of the 1.x branch (1.9.0, specifically) that fixes the issue at hand. We don't have to make any changes to our code, as that version is allowed by the selector we use ( github/advisory-database#4785 was just merged in, so it should disappear from |
@timdorr Ah indeed, I just need to do a |
What version of React Router are you using?
react-router-dom v5.3.4
Steps to Reproduce
run
npm audit report
and getExpected Behavior
The latest version of
react-router-dom
doesn't use a vulnerable version of path-to-regexpActual Behavior
npm audit report
currently shows vulnerabilities.The text was updated successfully, but these errors were encountered: