Skip to content
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

Fix for node-notifier vulnerability #95

Closed
wants to merge 1 commit into from
Closed

Conversation

skodamarthi
Copy link
Contributor

Title

Description of what's changing

...

What else might be impacted?

...

Which issue does this PR relate to?

...

Checklist

[ ] Tests are written and maintain or improve code coverage
[ ] I've tested this in my application using yarn link (if applicable)
[ ] You consent to and are confident this change can be released with no regression

@skodamarthi skodamarthi requested a review from reubenae as a code owner January 22, 2021 13:09
@@ -50,6 +50,7 @@
},
"dependencies": {
"@babel/preset-env": "^7.10.4",
"node-notifier": "^8.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its this package, right? https://www.npmjs.com/package/node-notifier?activeTab=readme

What do we need this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @reubenae. I noticed dependency bot rising some security vulnerability in one of our dependencies: node-notifier in yarn.lock. I thought we are using it already and performed the suggested action to upgrade. Then noticed that it actually created a new dependency. Wanted to discuss this with you last whitespace day and opened the PR and forgot about it. May be a false alert from dependency bot? or is uuid causing this as it is among one of the dependencies in node-notifier section?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2021-02-01 at 21 41 54

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2021-02-01 at 21 49 59

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting... I see it uses uuid as a dependency, but uuid doesn't use it as a dependency.
It looks like this dev-dependency @jest/reporters uses it https://github.com/zwave-js/node-zwave-js/blob/31f21271c69a5db89b171494d8a06c8afba2d9a1/yarn.lock#L1385 and it looks like they have updated their dependency since https://github.com/facebook/jest/blob/master/packages/jest-reporters/package.json#L52 in version 27. If you track that dependency tree up it unsurprisingly looks like jest is the dependency responsible for bringing it along. We're currently on version 26, so I think upgrading jest to 27 should upgrade node-notifier to a secure version.

I don't think this is a security concern based on the original issue report in node-notifier mikaelbr/node-notifier#294 - but lets upgrade anyway this week.

Does that all make sense? Any errors in my thinking?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @reubenae Amazing! That sounds right. I will close this PR and we can create another one to upgrade jest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants