This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| sharp (source, changelog) | ^0.34.5 → ^0.35.0 |
sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591
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.
sharp.block({ operation: ["VipsForeignLoadNsgif", "VipsForeignLoadTiff", "VipsForeignLoadVips"] });Severity
- CVSS Score: 7.0 / 10 (High)
- Vector String:
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/libvips/libvips/security/advisories/GHSA-2fcj-gj27-279x
- https://github.com/libvips/libvips/security/advisories/GHSA-523x-vhfw-6r76
- https://github.com/libvips/libvips/security/advisories/GHSA-jmwm-wc68-mhwm
- https://github.com/libvips/libvips/security/advisories/GHSA-r98w-4fp7-m9c7
- https://github.com/lovell/sharp/security/advisories/GHSA-f88m-g3jw-g9cj
- https://github.com/advisories/GHSA-f88m-g3jw-g9cj
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
lovell/sharp (sharp)
v0.35.0
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 thebuildscript.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. #4227Add
keepGainMapandwithGainMapto process HDR JPEG images with embedded gain maps. #4314Add
toUint8Arrayfor output image as aTypedArraybacked by a transferableArrayBuffer. #4355Require prebuilt binaries using static paths to aid code bundling. #4380
TypeScript: Ensure
FormatEnumkeys match reality. #4475Add
marginoption totrimoperation. #4480 @eddienubesEnsure 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. #4496Improve
pkg-configpath discovery. #4504Add WebP
exactoption for control over transparent pixel colour values.Add support for ECMAScript Modules (ESM). #4509 @florian-lefebvre
Configuration
📅 Schedule: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.