-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Fix for 3 vulnerabilities #30
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,11 +18,11 @@ | |
| }, | ||
| "dependencies": { | ||
| "@google-cloud/pubsub": "4.0.0", | ||
| "yargs": "10.1.2" | ||
| "yargs": "11.1.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@google-cloud/nodejs-repo-tools": "3.3.0", | ||
| "ava": "^4.0.0", | ||
| "ava": "^5.3.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This upgrade to While |
||
| "nyc": "^15.0.0", | ||
| "proxyquire": "1.8.0", | ||
| "sinon": "4.5.0", | ||
|
|
||
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.
This upgrade to
yargs@11.1.1is problematic for two reasons:Incomplete Security Fix: It fails to resolve the high-severity ReDoS vulnerability in
cross-spawn(SNYK-JS-CROSSSPAWN-8303230), as it still uses a vulnerable version of that package. A higher version ofyargs(e.g.,12.0.0or newer) is required to fix this.Broken Node.js Compatibility:
yargs@11.xrequires Node.js v6+, which conflicts with this project's stated support fornode >=4.3.2in theenginesfield. This will break the samples on older Node.js versions.This change should be rejected. A proper fix would involve upgrading
yargsto a version that resolves all vulnerabilities and simultaneously updating theenginesfield to reflect the new Node.js requirement.