Update dependency sharp to v0.35.4 [SECURITY] #75

Merged
renovate-bot merged 1 commit from renovate/npm-sharp-vulnerability into dev 2026-09-10 21:02:10 +02:00
Collaborator

This PR contains the following updates:

Package Change Age Confidence
sharp (source, changelog) 0.35.3 → 0.35.4 age confidence

sharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and GHSA-2jg2-4ch7-h545

GHSA-rgj7-g3m4-5g8c

More information

Details

Impact

A number of vulnerabilities, two rated as "Critical" severity using CVSSv3, have been discovered and fixed in the upstream libheif dependency. These can lead to possible remote code execution (RCE) on glibc-based Linux when run under certain conditions.

The attack vector for these claims to be "network" however sharp does not provide any networking features so this vulnerability is down-rated to a "High" severity using CVSSv4 but please note its Subsequent System Impact.

Those processing untrusted input with versions of sharp prior to 0.35.4 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.4, which provides libheif 1.23.2.

Using a globally-installed libheif?

Please ensure you are using the latest libheif 1.23.2.

Workarounds

Add the following to your code to prevent sharp from decoding AVIF images.

sharp.block({ operation: ["VipsForeignLoadHeif"] });

Ensure you are using a node executable binary compiled as a Position Independent Executable (PIE). Most Linux package managers already do this for protection against RCE however be warned that the "official" Node.js binaries do not.

References

Severity

  • CVSS Score: 8.9 / 10 (High)
  • Vector String: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

lovell/sharp (sharp)

v0.35.4

Compare Source

https://github.com/lovell/sharp-libvips/releases/tag/v1.3.3


Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • 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 has been generated by Mend Renovate.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [sharp](https://sharp.pixelplumbing.com) ([source](https://github.com/lovell/sharp), [changelog](https://github.com/lovell/sharp/blob/main/docs/src/content/docs/changelog.md)) | [`0.35.3` → `0.35.4`](https://renovatebot.com/diffs/npm/sharp/0.35.3/0.35.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/sharp/0.35.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/sharp/0.35.3/0.35.4?slim=true) | --- ### sharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and GHSA-2jg2-4ch7-h545 [GHSA-rgj7-g3m4-5g8c](https://github.com/advisories/GHSA-rgj7-g3m4-5g8c) <details> <summary>More information</summary> #### Details ##### Impact A number of vulnerabilities, two rated as "Critical" severity using CVSSv3, have been discovered and fixed in the upstream libheif dependency. These can lead to possible remote code execution (RCE) on glibc-based Linux when run under certain conditions. The attack vector for these claims to be "network" however sharp does not provide any networking features so this vulnerability is down-rated to a "High" severity using CVSSv4 but please note its Subsequent System Impact. Those processing untrusted input with versions of sharp prior to 0.35.4 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.4, which provides libheif 1.23.2. ##### Using a globally-installed libheif? Please ensure you are using the latest libheif 1.23.2. ##### Workarounds Add the following to your code to prevent sharp from decoding AVIF images. ```js sharp.block({ operation: ["VipsForeignLoadHeif"] }); ``` Ensure you are using a `node` executable binary compiled as a Position Independent Executable (PIE). Most Linux package managers already do this for protection against RCE however be warned that the "official" Node.js binaries do not. ##### References - [CVE-2026-84383](https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497) - https://github.com/strukturag/libheif/security/advisories/GHSA-2jg2-4ch7-h545 #### Severity - CVSS Score: 8.9 / 10 (High) - Vector String: `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H` #### References - [https://github.com/lovell/sharp/security/advisories/GHSA-rgj7-g3m4-5g8c](https://github.com/lovell/sharp/security/advisories/GHSA-rgj7-g3m4-5g8c) - [https://github.com/strukturag/libheif/security/advisories/GHSA-2jg2-4ch7-h545](https://github.com/strukturag/libheif/security/advisories/GHSA-2jg2-4ch7-h545) - [https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497](https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497) - [https://github.com/lovell/sharp](https://github.com/lovell/sharp) - [https://github.com/lovell/sharp/releases/tag/v0.35.4](https://github.com/lovell/sharp/releases/tag/v0.35.4) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-rgj7-g3m4-5g8c) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>lovell/sharp (sharp)</summary> ### [`v0.35.4`](https://github.com/lovell/sharp/releases/tag/v0.35.4) [Compare Source](https://github.com/lovell/sharp/compare/v0.35.3...v0.35.4) <https://github.com/lovell/sharp-libvips/releases/tag/v1.3.3> - Bound resize dimensions to coordinate limit. - Bound composite left and top to coordinate limit. [#&#8203;4564](https://github.com/lovell/sharp/pull/4564) [@&#8203;metsw24-max](https://github.com/metsw24-max) - Round palette bit depth up for png and gif colours. [#&#8203;4569](https://github.com/lovell/sharp/pull/4569) [@&#8203;metsw24-max](https://github.com/metsw24-max) - Ensure tiff.subifd input option is used. [#&#8203;4572](https://github.com/lovell/sharp/pull/4572) [@&#8203;metsw24-max](https://github.com/metsw24-max) - Ensure `info.pages` is correct when limiting input page range. [#&#8203;4578](https://github.com/lovell/sharp/pull/4578) [@&#8203;metsw24-max](https://github.com/metsw24-max) - Improve support for input Streams finishing before output is requested. [#&#8203;4584](https://github.com/lovell/sharp/pull/4584) [@&#8203;Jaybhade](https://github.com/Jaybhade) </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMzQuMCIsInVwZGF0ZWRJblZlciI6IjQzLjIzNC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbXX0=-->
Update dependency sharp to v0.35.4 [SECURITY]
Some checks failed
CI / test (pull_request) Failing after 3s
CI / build (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-prod (pull_request) Has been skipped
902da4882b
renovate-bot scheduled this pull request to auto merge when all checks succeed 2026-09-10 04:01:57 +02:00
renovate-bot deleted branch renovate/npm-sharp-vulnerability 2026-09-10 21:02:11 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
IC3P3/hcss-website!75
No description provided.