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

Vulnerability in dependencies #161

Closed
ghengeveld opened this issue Nov 5, 2015 · 5 comments
Closed

Vulnerability in dependencies #161

ghengeveld opened this issue Nov 5, 2015 · 5 comments
Labels

Comments

@ghengeveld
Copy link

As reported by Snyk via snyk test npm-check-updates:

✗ Vulnerability found on semver@2.3.2
Info: https://app.snyk.io/vuln/npm:semver:20150403
From: npm-check-updates@2.3.4 > bower@^1.5.3 > semver@^2.3.0
No direct dependency upgrade can address this issue.
Run `snyk protect -i` to patch this vulnerability
Alternatively, manually upgrade deep dependency semver@^2.3.0 to semver@4.3.2

✗ Vulnerability found on uglify-js@2.3.6
Info: https://app.snyk.io/vuln/npm:uglify-js:20150824
From: npm-check-updates@2.3.4 > bower@^1.5.3 > handlebars@^2.0.0 > uglify-js@~2.3
No direct dependency upgrade can address this issue.
Run `snyk protect -i` to patch this vulnerability
Alternatively, manually upgrade deep dependency handlebars@^2.0.0 to handlebars@4.0.0 (triggers upgrades to uglify-js@2.4.24)

Tested npm-check-updates for known vulnerabilities, found 2 vulnerabilities.
@raineorshine
Copy link
Owner

Hadn't heard of Snyk! Thanks! Will address next release.

@raineorshine
Copy link
Owner

Published in v2.4.0

@raineorshine
Copy link
Owner

Broke something for somebody in #136. I would love Snyk if it worked out of the box, but I can't get behind it if the postinstall script is breaking in certain environments. Maybe in the future it will be more stable.

Reverted in v2.4.1.

@ghengeveld
Copy link
Author

I never suggested making Snyk part of ncu, just that you fix the vulnerabilities. 👍

@raineorshine
Copy link
Owner

Hi Gert. Thanks for clarifying! From what I can tell, since the vulnerabilities don't exist in any direct dependencies of ncu that I can upgrade myself, Snyk needs to patch the vulnerabilities in the deep dependency tree after every ncu install. This is why Snyk was added to ncu, to enable this per-install patching. Unfortunately, that is what caused ncu to break in certain environments. There is no way to fix the vulnerabilities otherwise.

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

No branches or pull requests

2 participants