chore(deps): update dependency sharp to ^0.35.0 [security] - #476
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency sharp to ^0.35.0 [security]#476renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
November 16, 2023 21:05
9f5881b to
f6605da
Compare
Author
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: package-lock.json |
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
August 6, 2024 06:09
f6605da to
9cdb6ba
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
2 times, most recently
from
August 13, 2025 14:41
60cad2a to
bc12e5b
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
October 15, 2025 22:40
bc12e5b to
3a7f958
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
November 18, 2025 10:05
3a7f958 to
6f2a46b
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
January 19, 2026 19:29
6f2a46b to
f275328
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
February 2, 2026 21:34
f275328 to
d6d506b
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
February 12, 2026 12:10
d6d506b to
091d80f
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
March 13, 2026 19:05
091d80f to
e25a437
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
2 times, most recently
from
March 30, 2026 21:06
e25a437 to
67eeaaf
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
2 times, most recently
from
April 27, 2026 22:20
67eeaaf to
bf7820e
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
May 12, 2026 15:33
bf7820e to
de1a578
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
May 28, 2026 16:06
de1a578 to
574c6fd
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
June 11, 2026 17:07
574c6fd to
496b565
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
July 12, 2026 13:29
496b565 to
988bf5a
Compare
renovate
Bot
force-pushed
the
renovate/npm-sharp-vulnerability
branch
from
August 26, 2026 12:19
988bf5a to
05fa7b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.26.2→^0.35.0sharp vulnerable to Command Injection in post-installation over build environment
CVE-2022-29256 / GHSA-gp95-ppv5-3jc5
More information
Details
There's a possible vulnerability in logic that is run only at
npm installtime when installing versions ofsharpprior to the latest v0.30.5.This is not part of any runtime code, does not affect Windows users at all, and is unlikely to affect anyone that already cares about the security of their build environment. However, out of an abundance of caution, I've created this advisory.
If an attacker has the ability to set the value of the
PKG_CONFIG_PATHenvironment variable in a build environment then they might be able to use this to inject an arbitrary command atnpm installtime.I've used the Common Vulnerability Scoring System (CVSS) calculator to determine the maximum possible impact, which suggests a "medium" score of 5.9, but for most people the real impact will be dealing with the noise from automated security tooling that this advisory will bring.
AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C/CR:X/IR:X/AR:X/MAV:X/MAC:X/MPR:X/MUI:R/MS:X/MC:X/MI:X/MA:XThis problem was fixed in commit a6aeef6 and published as part of
sharpv0.30.5.Thank you very much to @dwisiswant0 for the responsible disclosure.
Remember: if an attacker has control over environment variables in your build environment then you have a bigger problem to deal with than this issue.
Severity
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
sharp vulnerability in libwebp dependency CVE-2023-4863
GHSA-54xq-cgqr-rpm3
More information
Details
Overview
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.
Who does this affect?
Almost anyone processing untrusted input with versions of sharp prior to 0.32.6.
How to resolve this?
Using prebuilt binaries provided by sharp?
Most people rely on the prebuilt binaries provided by sharp.
Please upgrade sharp to the latest 0.32.6, which provides libwebp 1.3.2.
Using a globally-installed libvips?
Please ensure you are using the latest libwebp 1.3.2.
Possible workaround
Add the following to your code to prevent sharp from decoding WebP images.
Severity
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591
GHSA-f88m-g3jw-g9cj
More information
Details
Impact
A number of vulnerabilities, two rated as "High" severity using CVSSv4, have been discovered and fixed in the upstream libvips dependency.
Those processing untrusted input with versions of sharp prior to 0.35.0 are affected.
Patches
Using prebuilt binaries provided by sharp?
Most people rely on the prebuilt binaries provided by sharp.
Please upgrade sharp to the latest version, currently 0.35.3, which provides libvips 8.18.3.
Using a globally-installed libvips?
Please ensure you are using the latest libvips 8.18.3.
Workarounds
Add the following to your code to prevent sharp from decoding GIF, TIFF and VIPS images.
Severity
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
lovell/sharp (sharp)
v0.35.0Compare Source
Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.
Breaking: Remove
installscript frompackage.jsonfile.Compiling from source is now opt-in via the
buildscript.Breaking: Lossy AVIF output is now tuned using SSIMULACRA2-based
iqquality metrics.Breaking: Add
limitInputChannelswith a default value of 5.Breaking: Remove deprecated
failOnErrorconstructor property.Breaking: Remove deprecated
paletteBitDepthfrommetadataresponse.Breaking: Remove deprecated properties from
sharpenoperation.Breaking: Rename
format.jp2kasformat.jp2for API consistency.Upgrade to libvips v8.18.3 for upstream bug fixes.
Remove experimental status from WebAssembly binaries.
Add prebuilt binaries for FreeBSD (WebAssembly).
Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.
Ensure TIFF output
bitdepthoption is limited to 1, 2 or 4.Add AVIF/HEIF
tuneoption for control over quality metrics.#4227
Add
keepGainMapandwithGainMapto process HDR JPEG images with embedded gain maps.#4314
Add
toUint8Arrayfor output image as aTypedArraybacked by a transferableArrayBuffer.#4355
Require prebuilt binaries using static paths to aid code bundling.
#4380
TypeScript: Ensure
FormatEnumkeys match reality.#4475
Add
marginoption totrimoperation.#4480
@eddienubes
Ensure HEIF primary item is used as default page/frame.
#4487
Add image Media Type (MIME Type) to metadata response.
#4492
Add
withDensityto set output density in EXIF metadata.#4496
Improve
pkg-configpath discovery.#4504
Add WebP
exactoption for control over transparent pixel colour values.Add support for ECMAScript Modules (ESM).
#4509
@florian-lefebvre
v0.34.5Compare Source
Upgrade to libvips v8.17.3 for upstream bug fixes.
Add experimental support for prebuilt Linux RISC-V 64-bit binaries.
Support building from source with npm v12+, deprecate
--build-from-sourceflag.#4458
Add support for BigTIFF output.
#4459
@throwbi
Improve error messaging when only warnings issued.
#4465
Simplify ICC processing when retaining input profiles.
#4468
v0.34.4Compare Source
Upgrade to libvips v8.17.2 for upstream bug fixes.
Ensure TIFF
subifdand OpenSlidelevelinput options are respected (regression in 0.34.3).Ensure
autoOrientoccurs before non-90 angle rotation.#4425
Ensure
autoOrientremoves existing metadata after shrink-on-load.#4431
TypeScript: Ensure
KernelEnumincludeslinear.#4441
@BayanBennett
Ensure
unlimitedflag is passed upstream when reading TIFF images.#4446
Support Electron memory cage when reading XMP metadata (regression in 0.34.3).
#4451
Add sharp-libvips rpath for yarn v5 support.
#4452
@arcanis
v0.34.3Compare Source
v0.34.2Compare Source
v0.34.1Compare Source
v0.34.0Compare Source
v0.33.5Compare Source
v0.33.4Compare Source
v0.33.3Compare Source
v0.33.2Compare Source
v0.33.1Compare Source
v0.33.0Compare Source
v0.32.6Compare Source
v0.32.5Compare Source
v0.32.4Compare Source
v0.32.3Compare Source
v0.32.2Compare Source
v0.32.1Compare Source
v0.32.0Compare Source
v0.31.3Compare Source
v0.31.2Compare Source
v0.31.1Compare Source
v0.31.0Compare Source
v0.30.7Compare Source
v0.30.6Compare Source
v0.30.5Compare Source
v0.30.4Compare Source
v0.30.3Compare Source
v0.30.2Compare Source
v0.30.1Compare Source
v0.30.0Compare Source
v0.29.3Compare Source
v0.29.2Compare Source
v0.29.1Compare Source
v0.29.0Compare Source
v0.28.3Compare Source
v0.28.2Compare Source
v0.28.1Compare Source
v0.28.0Compare Source
v0.27.2Compare Source
v0.27.1Compare Source
v0.27.0Compare Source
v0.26.3Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.