-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Upgrade node-fetch
#33462
Comments
node-fetch
Fixes #33462 Tried upgrading to v3, but we rely on the `timeout` property: https://github.com/vercel/next.js/blob/e5dee17f776dcc79ebb269f7b7341fa6e2b6c3f1/packages/next/telemetry/post-payload.ts#L12 Which was removed since it's non-standard: https://github.com/node-fetch/node-fetch/blob/main/docs/v3-UPGRADE-GUIDE.md#the-timeout-option-was-removed I wanted to keep this PR minimal, so I did not try to work around the above. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
@balazsorban44 / @kodiakhq did we fix this for |
We likely won't backport it since you can update |
@balazsorban44 , |
On reconsideration, we might do it after all, thank you for pointing it out. |
@balazsorban44 Use npm overrides huh? I hope do you reconsider about patching next v11: Just consider any new users of next v11 today:
|
|
Fixes vercel#33462 Tried upgrading to v3, but we rely on the `timeout` property: https://github.com/vercel/next.js/blob/e5dee17f776dcc79ebb269f7b7341fa6e2b6c3f1/packages/next/telemetry/post-payload.ts#L12 Which was removed since it's non-standard: https://github.com/node-fetch/node-fetch/blob/main/docs/v3-UPGRADE-GUIDE.md#the-timeout-option-was-removed I wanted to keep this PR minimal, so I did not try to work around the above. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Fixes vercel#33462 Tried upgrading to v3, but we rely on the `timeout` property: https://github.com/vercel/next.js/blob/e5dee17f776dcc79ebb269f7b7341fa6e2b6c3f1/packages/next/telemetry/post-payload.ts#L12 Which was removed since it's non-standard: https://github.com/node-fetch/node-fetch/blob/main/docs/v3-UPGRADE-GUIDE.md#the-timeout-option-was-removed I wanted to keep this PR minimal, so I did not try to work around the above. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
Run
next info
(available from version 12.0.8 and up)Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Binaries:
Node: 14.18.2
npm: 6.14.15
Yarn: 1.22.17
pnpm: N/A
Relevant packages:
next: 12.0.8
react: 17.0.2
react-dom: 17.0.2
What version of Next.js are you using?
12.0.8
What version of Node.js are you using?
14.18.2
What browser are you using?
Chrome
What operating system are you using?
Windows 10
How are you deploying your application?
Vercel
Describe the Bug
Vulnerability in Next.js 12.0.8, in node-fetch package
Expected Behavior
λ snyk test next
Testing next...
✗ Medium severity vulnerability found in node-fetch
Description: Information Exposure
Info: https://snyk.io/vuln/SNYK-JS-NODEFETCH-2342118
Introduced through: node-fetch@2.6.1
From: node-fetch@2.6.1
Organization: xxx
Package manager: npm
Open source: yes
Project path: next
Tested next for known vulnerabilities, found 1 vulnerability, 1 vulnerable path.
To Reproduce
install nextjs project
install snyk global
run snyk test
The text was updated successfully, but these errors were encountered: