-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
5 high severity vulnerabilities when installing gatsby-source-contentful, all related to utils-extend npm package #24679
Comments
@vladar as far as I remember we as plugin maintainers should not touch the yarn.lock in PRs. How should be proceed? |
I think you can touch So you can update the dependency in Check this PR for example: #24788 |
@vladar 🆗 |
Okay I check this in detail. https://www.npmjs.com/package/base64-img wasn't updated for a while and the way we implement it, we do a request to Contentful every time we need a base64 version of an image. I guess we should do the following:
This should:
|
Related: #24220 |
Will this vulnerability can have any impact on a production gatsby site? |
No as the code won't be executed at all in a production environment :) |
This will be fixed in the next major version as it requires potentially breaking refactoring to get rid of these dependencies. See #25249 |
@axe312ger I just wanted to follow up on this i installed the latest next package and I'm still getting the vulnerability error. |
@MikeyUchiha sorry, there is no fix implemented yet in that version. We probably have to postone it further except somebody picks it up. We still need to change the base64 behavior as mentioned in #24679 (comment) to get rid of all security issues |
There is a ticket for changing the base64 behaviour: #24220 |
@axe312ger Thank you for the update! |
As #25249 was merged and released I'll close this one. |
@LekoArts are you sure the vulnerabilites are fixed? I didn't update the related packages in that branch (at least on purpose) |
Sorry, I read it as it'd be fixed. |
How can I solve this problem C:\Users\Hp\Desktop\gatsby-bootcamp>npm install gatsby-source-contentful added 33 packages, and audited 2422 packages in 27s 53 packages are looking for funding 6 high severity vulnerabilities Some issues need review, and may require choosing Run |
@pranitcode follow the funding instructions and send money 🙃 |
Seriously🙁 😂 |
@pranitcode sorry for that joke. But I have trouble understanding your problem. As mentioned above, the security vulnerabilities do not apply to the plugin. We will fix these, but with low priority. You are also welcome to contribute to Gatsby and help us getting rid of these dependencies as mentioned in #24679 (comment) |
(Low priority might be pretty soon, lets see) |
Description
NPM install found 5 high severity vulnerabilities
Steps to reproduce
npm init
npm install --save gatsby-source-contentful
Expected result
The package shouldn't contain anything above medium severity vulnerabilities.
Actual result
npm audit and npm audit fix leave 5 high severity vulnerabilities, all are related to utils-extend which hasn't been updated in more than 5 years
Environment
Empty project, and currently ongoing projects leave the same warnings.
The text was updated successfully, but these errors were encountered: