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

Fix: sharp vulnerability in libwebp dependency (analyzing, don't merge) #874

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

bobslavtriev
Copy link
Contributor

Sharp uses libwebp to decode WebP images and versions prior to the latest 0.32.6 are vulnerable to the high severity GHSA-j7hp-h8jx-5ppr

Or implement sharp.block({ operation: ["VipsForeignLoadWebp"] }); in the code in messages-media.ts

@whiskeysockets-bot
Copy link
Contributor

Thanks for your contribution.

The next step is to wait for review and approval to merge it to main repository

The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it.

To test this PR you can run the following command below:

# NPM
npm install @whiskeysockets/baileys@bobslavtriev/Baileys#sh
# YARN v2
yarn add @whiskeysockets/baileys@bobslavtriev/Baileys#sh

@bobslavtriev bobslavtriev changed the title Fix: sharp vulnerability in libwebp dependency Fix: sharp vulnerability in libwebp dependency (analyzing, don't merge) Jun 14, 2024
@PurpShell
Copy link
Collaborator

WEBP is one of the reasons we use sharp, not sure where you got the "sharp uses libwebp", afaik it uses libvips

@PurpShell
Copy link
Collaborator

lovell/sharp#3798

@PurpShell PurpShell merged commit 4a21c81 into WhiskeySockets:master Jun 16, 2024
1 of 2 checks passed
Git-RenatoAlcantara pushed a commit to Git-RenatoAlcantara/amarulawebsocket that referenced this pull request Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants