Please upgrade sharp
to version >0.32.6 due to **security vulnerability**
#9739
Labels
sharp
to version >0.32.6 due to **security vulnerability**
#9739
🙋 feature request
When using image optimization, parcel currently installs version
^0.31.1
ofsharp
, as hardcoded here:parcel/packages/transformers/image/src/loadSharp.js
Line 5 in 38635b5
Unfortunately, all versions of
sharp
below0.32.6
have a security vulnerability in the libwebp dependency, more information can be found here: GHSA-54xq-cgqr-rpm3Dependabot and
pnpm
are constantly reporting this vulnerability, but I can't upgrade to a version above0.31.3
since that breaks my parcel build (Error: Could not find module "sharp" satisfying ^0.31.1.
).🤔 Expected Behavior
Parcel installs
sharp
version0.32.6
or above.😯 Current Behavior
Parcel install
sharp
version0.31.3
.💁 Possible Solution
Bump up the version in this line:
parcel/packages/transformers/image/src/loadSharp.js
Line 5 in 38635b5
And maybe check the changelog of
sharp
to make sure nothing breaks.🔦 Context
I'm simply trying to make use of the image optimization and resizing feature. I have the following line in my HTML and I'm trying to get it to work:
<img class="avatar" src="./images/avatar.jpg?as=webp&width=256" srcset="./images/avatar.jpg?as=webp&width=512 2x"/>
The text was updated successfully, but these errors were encountered: