-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Milestone
Description
ref: #4449, e18e/ecosystem-issues#203
Sharp currently depends on color@^4.2.3. This package depends transitively on simple-swizzle, a library which has been recommended against being used by the author for at least three years, and was recently compromised.
Whilst color@^5.0.0 has removed its transitive dependence on simple-swizzle, it has also gone esm only, which is incompatible with the supported node versions of this library.
For completeness then, there are three options I can see:
- do nothing - none of the packages are currently vulnerable, and all will continue to work. However, there is a reasonable chance that simple-swizzle will be marked as deprecated, which may trigger warnings for downstream users
- update minimum supported version of node, update to
color@^5.0.0. As mentioned earlier, this is not acceptable - update to a new color parsing library that does not pull in so many dependencies, and still supports
cjs.
The hardest part of 3. will be finding which of the hundreds of color parsing libraries out there is best fit ;)