Skip to main content

GHSA-2464-fhr4-w9xw — Vulnerability in next — Advisory Details

CRITICAL

Next.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used

Published October 22, 2026Updated October 22, 2026Source: OSV

Does your project use an affected next version?

Paste your package-lock.json to check it for GHSA-2464-fhr4-w9xw and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

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.

Advisory Timeline

  • First published October 22, 2026 (35 days ago).
  • Last revised October 22, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update next to 16.4.1 or later
npm install next@16.4.1
npm
Update next to 15.5.28 or later
npm install next@15.5.28

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: npm (1).

PackageFixed In
next npm · Affected: All versions16.4.1
next npm · Affected: All versions15.5.28

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Frequently Asked Questions

What is GHSA-2464-fhr4-w9xw?
Next.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used. This vulnerability has been assigned a severity rating of CRITICAL.
How do I check if my project is affected by GHSA-2464-fhr4-w9xw?
GHSA-2464-fhr4-w9xw affects next. Use GeekWala's free vulnerability scanner to check your dependencies against GHSA-2464-fhr4-w9xw and 200,000+ other known vulnerabilities.

Severity & Exploitability

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json