Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next
  4. ›
  5. GHSA-2xp9-vwfh-vxw4

GHSA-2xp9-vwfh-vxw4: Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used

September 8, 2026

A vulnerability in the underlying libheif library used by sharp which Next.js uses for image optimization can lead to remote code execution when AVIF files are optimized.

Until a fix has propagated, optimization of AVIF files is disabled.

References

  • github.com/advisories/GHSA-2xp9-vwfh-vxw4
  • github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497
  • github.com/vercel/next.js/commit/3a15b4ac6ac8e70b1a9b18ecc18e8434462899b3
  • github.com/vercel/next.js/commit/409772ec807def20132d251ad48fd8d8ad4c73c2
  • github.com/vercel/next.js/commit/7a5937a8ab20b89d0a961f75eabb11577f5d5998
  • github.com/vercel/next.js/pull/97875
  • github.com/vercel/next.js/pull/97931
  • github.com/vercel/next.js/releases/tag/v15.5.24
  • github.com/vercel/next.js/releases/tag/v16.3.3
  • github.com/vercel/next.js/security/advisories/GHSA-2xp9-vwfh-vxw4

Code Behaviors & Features

Detect and mitigate GHSA-2xp9-vwfh-vxw4 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 10.0.0 before 15.5.24, all versions starting from 16.0.0 before 16.3.3

Fixed versions

  • 15.5.24
  • 16.3.3

Solution

Upgrade to versions 15.5.24, 16.3.3 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1395: Dependency on Vulnerable Third-Party Component

Source file

npm/next/GHSA-2xp9-vwfh-vxw4.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:21:18 +0000.