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: ReDoS referrer #1611
fix: ReDoS referrer #1611
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Eliminate regex and use string matcher Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
The release is available on: Your semantic-release bot |
Can we add this to v2 (CommonJS) as well? (ref) |
We would be happy to accept a PR for this |
I went through 2.x code and I could not find this issue there. 2.x doesn't even implement We got a Snyk-bot notification about this issue, but I think node-fetch:2.x is not affected by this CVE. |
Hi there, I confirm that version 2.x is not affected by this vulnerability. |
I suggest we could add a Security Advisory and specify the affected version for this issue. |
Just for clarity, we have updated the CVE here: |
Purpose
Fix Inefficient Regular Expression Complexity (ReDoS) in the referrer regex.
Changes
Potentially Trustworthy
regex matcher.Additional information