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

Backport the ReDoS fix in v2.0.0 #22

Closed
XhmikosR opened this issue Oct 3, 2021 · 8 comments
Closed

Backport the ReDoS fix in v2.0.0 #22

XhmikosR opened this issue Oct 3, 2021 · 8 comments

Comments

@XhmikosR
Copy link

XhmikosR commented Oct 3, 2021

Hey, @sindresorhus. I know you might not support v2.0.0, but there are so many packages that are still using it: https://www.npmjs.com/package/semver-regex?activeTab=versions

2.0.0
1,955,620

Would it be possible to backport the fix for 2.x too?

Thanks!

PS. the latest npm tag points to v3.1.3, not sure if that's intentional.

@sindresorhus
Copy link
Owner

I don't plan to backport to v2. v2 is a very old release. I generally only backport one release back.

@sindresorhus
Copy link
Owner

but there are so many packages that are still using it:

You don't know that. It could be a single popular dependency that never updated.

@sindresorhus
Copy link
Owner

PS. the latest npm tag points to v3.1.3, not sure if that's intentional.

Thanks for letting me know. Fixed.

@XhmikosR
Copy link
Author

XhmikosR commented Oct 3, 2021

The issue for me is this dep chain: bin-wrapper -> find-versions -> semver-regex.

I'm only judging by the numbers, and the numbers are big.

@sindresorhus
Copy link
Owner

The "vulnerability" does not apply to bin-wrapper.

@sindresorhus
Copy link
Owner

npm/rfcs#422 would solve this.

@XhmikosR
Copy link
Author

XhmikosR commented Oct 3, 2021 via email

@lorand-horvath
Copy link

lorand-horvath commented Jun 8, 2022

@sindresorhus I have this dep chain: bin-wrapper > bin-version-check > bin-version > find-versions > semver-regex which audits as vulnerable to ReDoS because it depends on the unpatched semver-regex 2.0.0
Is there something I can do to fix this? It's driving me crazy.

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

No branches or pull requests

3 participants