-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update to color ^5.0.0 #4449
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
Update to color ^5.0.0 #4449
Conversation
Color had transitive dependencies on is-arrayish and simple-swizzle, two recently compromised packages. As simple-swizzle is no longer recommended (and never really was) this seems like a good time to update to the latest version of color which eliminates those dependencies
|
Thanks for the PR, have you tested this? I ask as I had previously investigated this upgrade only to discover v5 of the |
|
Still working on getting tests running - having some "being a windows developer" issues. |
|
@lovell one thing worth noting is that all LTS versions of node now support so this may be opportunity to bump your |
|
sharp currently needs to support versions of Node.js that do not provide ESM and this will be the case for a while yet. It's all moot anyway as the latest v5.0.1 of the The correct action that we all need right now is for npm (owned by Microsoft, annual income of US$245 billion) to unpublish all of the affected dependencies. |
|
This isn't about the compromise of color and the other related packages: the affected version has already been unpublished. The issue is the dependency on simple-swizzle. I don't think sharp can upgrade to an ESM-only version while still supporting Node 18. |
|
It looks like simple-swizzle@0.2.3 has finally been removed from npm |
|
yes, to be clear, the focus in this issue shouldn't be that the packages were compromised the issue is that the swizzle package has long since been deprecated by the maintainer and advised against being used. so its good clean up to move off it we can't do that here by upgrading to but we could look into alternatives to it may be sensible to close this PR and track it in an issue instead for that reason |
|
I agree with @43081j that given the requirement to support old node, perhaps an alternative library would help clean up the dep tree. On the vulnerability side - 5.0.1 is not currently vulnerable. A vulnerable version was published with a version of 5.0.1; this was removed and a new clean version was published over the top. Not quite sure why, but it is safe. |
Color had transitive dependencies on is-arrayish and simple-swizzle, two recently compromised packages.
As simple-swizzle is no longer recommended (and never really was) this seems like a good time to update to the latest version of color which eliminates those dependencies