GHSA-2464-fhr4-w9xw: Npm/next vulnerability

Published Oct 22, 2026
·
Updated

Impact

A memory-related vulnerability has been discovered in an upstream library used for Image Optimization can lead to possible remote code execution (RCE) when Next.js runs on glibc-based Linux.

Workaround

Ensure the version of sharp used by Next.js is greater than or equal to 0.35.5. Fresh installs automatically get a fixed version of sharp. Upgrading Next.js to the patched versions will ensure package managers automatically provide a fixed version of sharp to Next.js.

Affected Software

2 affected componentsFixes available
npm/next>=16.0.0<=16.4.0
16.4.1
npm/next>=10.0.0<=15.5.27
15.5.28

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/next to a version that resolves this vulnerability.

    Fixed in 16.4.1
  2. Upgrade

    Upgrade npm/next to a version that resolves this vulnerability.

    Fixed in 15.5.28
  3. Upgrade

    Upgrade sharp to a version that resolves this vulnerability.

    Fixed in 0.35.5

Event History

Oct 22, 2026
Advisory Published
via GitHub·03:52 PM
Data Sourced
via GitHub·03:52 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to possible remote code execution?

The issue affects Next.js deployments running on glibc-based Linux where Image Optimization uses a vulnerable upstream library version. Fresh installs automatically receive a fixed sharp version.

2

What is required to mitigate the issue if Next.js cannot be upgraded immediately?

Ensure that the version of sharp used by Next.js is 0.35.5 or later. Upgrading Next.js to a patched version also causes package managers to provide a fixed sharp version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203