Skip to content
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

fix(security): update path-to-regexp to 6.3.0 #2316

Merged

Conversation

evktalo
Copy link

@evktalo evktalo commented Oct 15, 2024

Reference: https://security.snyk.io/vuln/SNYK-JS-PATHTOREGEXP-7925106

Background: We have a security alert from Snyk in the project I'm working on and it suggests upgrading to msw 2.0.0 to fix this issue. Looks like migrating is an unknown amount of work. Looks like the suggestion is to migrate from jest to vitest, and vitest is also something new for us (although interesting).

So I thought backporting this fix might be a nice and clean way to hopefully resolve this problem for us.

@evktalo
Copy link
Author

evktalo commented Oct 15, 2024

I don't think this PR introduces this issue: https://app.codacy.com/gh/mswjs/msw/pull-requests/2316

Maybe this is due to old version of pnmp in use in this legacy branch?

@kettanaito kettanaito changed the title chore: update path-to-regexp to fix vulnerability in 1.3.x fix: update path-to-regexp to fix vulnerability Oct 16, 2024
@kettanaito kettanaito changed the title fix: update path-to-regexp to fix vulnerability fix(security): update to [email protected] Oct 16, 2024
@kettanaito
Copy link
Member

@evktalo, if you are referring to the CI, it hasn't run so that failure was about something else. I've triggered it right now, let's see how it goes.

@kettanaito kettanaito changed the title fix(security): update to [email protected] fix(security): update path-to-regexp to 6.3.0 Oct 21, 2024
@kettanaito kettanaito merged commit 5de6cfd into mswjs:backport/v1 Oct 21, 2024
10 of 11 checks passed
@kettanaito
Copy link
Member

Released: v1.3.5 🎉

This has been released in v1.3.5!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

@evktalo evktalo deleted the chore-update-path-to-regexp-for-v-1-3-x branch October 22, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants