GHSA-2464-fhr4-w9xw

Suggest an improvement
Source
https://github.com/advisories/GHSA-2464-fhr4-w9xw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-2464-fhr4-w9xw/GHSA-2464-fhr4-w9xw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2464-fhr4-w9xw
Published
2026-10-22T15:52:53Z
Modified
2026-10-22T16:00:09Z
Severity
  • 9.5 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
Next.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-1395"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-22T15:52:53Z",
    "nvd_published_at":  null,
    "severity":  "CRITICAL"
}
References

Affected packages

npm / next

Package

Affected ranges

Type
SEMVER
Events
Introduced
10.0.0
Fixed
15.5.28

Database specific

last_known_affected_version_range
"<= 15.5.27"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-2464-fhr4-w9xw/GHSA-2464-fhr4-w9xw.json"

npm / next

Package

Affected ranges

Type
SEMVER
Events
Introduced
16.0.0
Fixed
16.4.1

Database specific

last_known_affected_version_range
"<= 16.4.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-2464-fhr4-w9xw/GHSA-2464-fhr4-w9xw.json"