-
Notifications
You must be signed in to change notification settings - Fork 156
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
Override transitive semver dependency version to fix security vulnerability #604
Conversation
@@ -3,6 +3,9 @@ | |||
"version": "3.5.0", | |||
"private": true, | |||
"license": "Apache-2.0", | |||
"resolutions": { | |||
"semver": "7.5.3" |
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.
wondering why is not
"resolutions": {
"cls-hooked" : {
"semver": "7.5.3"
}
}
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.
I tried that initially but it seems that npm-force-resolutions
doesn't support specifying the direct dependency -> transitive dependency. When I ran lerna bootstrap --hoist
to install, the package-lock.json
was not updated correctly in this case.
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.
Good to know
How do we ensure that |
@srprash An additional note: |
Issue #, if available: #599
Description of changes: Use
npm-force-resolutions
to override the vulnerablesemver
dependencyv5.7.1
being installed fromcls-hooked v4.2.2
. It is necessary to manually override thesemver
version as thecls-hooked
package has not issued a release since 2017.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.