-
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
High severity security vulnerability in dot-prop #26128
Comments
This is, ironically, going to require an update from update-notifier. configstore already has a release that depends on dot-prop 5.2.0, but update-notifier hasn't been updated in a while. I'm going to close this, because dependabot will ensure we update once it's available. You might want to open an issue on the update-notifier repo, as it doesn't seem like anyone has. In the meantime you can use yarn resolutions in your own site, or one of the hacks that does similar for npm. |
actually, I think that gatsby-cli needs to upgrade to [email protected] currently: [email protected] references already the fixed [email protected] dependency. |
and the renovate bot leaves the "update-notifier" dependency untouched - incorrectly: |
OK, you are correct. I misread that. I guess Renovate won't update it because it's a major version bump. I'll reopen and mark as help wanted. If somebody would like to upgrade it and test the new major version then we'd welcome a PR. I don't know how much the API has changed. |
Fixing this is important & urgent.
|
I'll raise a PR |
There's an additional issue with |
Not sure if this helps, but I found this searching around. I'm new to this type of thing, so "grain-of-salt" is worth taking. I added the following code to my package.json and then ran yarn install. dot-prop fixed: |
It is a fix by forcing dot-prop to a higher version but it can introduce issues if the consuming library isn't prepared for a later version. With that said, for
|
@herecydev Unfortunately did not work for me. I'm using |
I do believe that if you use Yarn, you have a different lock file than if you use npm. Yarn allows you to use the "resolutions" in your package.json, while npm does not. This might explain why you're not getting the same result with npm. Not sure how to do this with npm. |
yeah, I see Gatsby CLI does not update update-notifier to the latest version. I have 13 update-notifiers on package-lock.json and others have the latest version. is it a good idea to do 'npm audit fix --force' ? |
gatsbybot got a little hasty there, still needs devcert to be patched |
Same |
I am also using NPM instead of Yarn, are there any workarounds for this issue? |
If you're on npm you can use this (https://github.com/rogeriochaves/npm-force-resolutions) to mimic yarn's resolutions and then use |
Thanks Alex! This solved my problem. I was stuck on this for days. You're a lifesaver! |
Seeing the following:
How do we go about getting dot-prop updated for these components of gatsby?
The text was updated successfully, but these errors were encountered: