[Snyk] Fix for 1 vulnerable dependencies#19
Conversation
The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202
|
Hi There... Any chance of bumping the lodash version to rule out the vulnerability and re-publishing? Although I "think" according to semver it shouldn't matter? |
|
The lodash update that patched this (v4.17.12) was published 4 days ago. This PR was created 8 days ago. It looks like Snyk was applying its own security patch because there was no version of lodash to update to at the time. Not sure how Synk works but I would say it is best to just close this PR and open a new PR to update lodash. |
|
This was helpful https://snyk.io/docs/fixing-vulnerabilities/
I was wondering how this would protect someone installing this package. A post install hook that applies the patch makes sense but this didn't create a post-install hook, instead it used the pre-publish hook. Maybe Snyk was able to determine that lodash was bundled as part of a build step? If that is the case then lodash should be a dev-dependency not a dependency. |
|
We don't have a package-lock.json and according to semver in our package.json, anyone installing the promise-core package will get the patched lowdash anyway, so yeah, I see no reason why this PR can't be cosed. As far as I'm aware, Snyk only looks at the package manifest. |
|
If someone installed this dependency, or a dependency with this dependency, more than 5 days ago then they have the bad version of lodash in their lock file. By not updating the version of lodash you’re telling package managers that it is “ok” to install the bad version of lodash. From my experience I would not rely on sem-versioning at all. |
|
That's a good point @daniel-nagy |
|
I just bumped |
Description
This PR fixes one or more vulnerable packages in the
npmdependencies of this project.See the Snyk test report for more details.
Snyk Project: request/promise-core:package.json
Snyk Organization: analog-nico
Changes included in this PR
.snyk) file, with updated settings.Vulnerabilities that will be fixed
With a Snyk patch:
You can read more about Snyk's upgrade and patch logic in Snyk's documentation.
Check the changes in this PR to ensure they won't cause issues with your project.
Stay secure,
The Snyk team
Note: You are seeing this because you or someone else with access to this repository has authorised Snyk to open Fix PRs. To review the settings for this Snyk project please go to the project settings page.