GHSA-2xp9-vwfh-vxw4 — Vulnerability in next — Advisory Details
Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used
Does your project use an affected next version?
Paste your package-lock.json to check it for GHSA-2xp9-vwfh-vxw4 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.
Summary
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.
Advisory Timeline
- First published September 8, 2026 (79 days ago).
- Last revised September 8, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install next@16.3.3
npm install next@15.5.24
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1395
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) score means for each attack dimension.
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
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497WEB
- https://github.com/vercel/next.js/security/advisories/GHSA-2xp9-vwfh-vxw4WEB
- https://github.com/vercel/next.js/pull/97875WEB
- https://github.com/vercel/next.js/pull/97931WEB
- https://github.com/vercel/next.js/commit/3a15b4ac6ac8e70b1a9b18ecc18e8434462899b3WEB
- https://github.com/vercel/next.js/commit/409772ec807def20132d251ad48fd8d8ad4c73c2WEB
- https://github.com/vercel/next.js/commit/7a5937a8ab20b89d0a961f75eabb11577f5d5998WEB
- https://github.com/vercel/next.jsPACKAGE
- https://github.com/vercel/next.js/releases/tag/v15.5.24WEB
- https://github.com/vercel/next.js/releases/tag/v16.3.3WEB
Frequently Asked Questions
- What is GHSA-2xp9-vwfh-vxw4?
- Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used. This vulnerability has been assigned a severity rating of CRITICAL.
- How do I check if my project is affected by GHSA-2xp9-vwfh-vxw4?
- GHSA-2xp9-vwfh-vxw4 affects next. Use GeekWala's free vulnerability scanner to check your dependencies against GHSA-2xp9-vwfh-vxw4 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Related CVEs
- CVE-2025-29927CRITICAL
Authorization Bypass in Next.js Middleware
- CVE-2026-64649HIGH
Next.js: Server-Side Request Forgery in Server Actions on custom servers
- GHSA-8h8q-6873-q5fjHIGH
Next.js Vulnerable to Denial of Service with Server Components
- CVE-2026-44578HIGH
Next.js vulnerable to server-side request forgery in applications using WebSocket upgrades
- CVE-2026-94483HIGH
Next.js has Server-Side Request Forgery in Image Optimization
- CVE-2026-64643MEDIUM
Next.js: Unauthenticated disclosure of internal Server Function endpoints
- CVE-2025-59471MEDIUM
Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration
- CVE-2026-94485MEDIUM
Next.js has information disclosure in App Router metadata image routes via dynamicParams bypass