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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please upgrade sharp to version >0.32.6 due to **security vulnerability** #9739

Open
jonasgeiler opened this issue May 25, 2024 · 0 comments

Comments

@jonasgeiler
Copy link

馃檵 feature request

When using image optimization, parcel currently installs version ^0.31.1 of sharp, as hardcoded here:

const SHARP_RANGE = '^0.31.1';

Unfortunately, all versions of sharp below 0.32.6 have a security vulnerability in the libwebp dependency, more information can be found here: GHSA-54xq-cgqr-rpm3
Dependabot and pnpm are constantly reporting this vulnerability, but I can't upgrade to a version above 0.31.3 since that breaks my parcel build (Error: Could not find module "sharp" satisfying ^0.31.1.).

馃 Expected Behavior

Parcel installs sharp version 0.32.6 or above.

馃槸 Current Behavior

Parcel install sharp version 0.31.3.

馃拋 Possible Solution

Bump up the version in this line:

const SHARP_RANGE = '^0.31.1';

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"/>

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

No branches or pull requests

2 participants