Critical Next.js SVG Image Processing Vulnerability Could Enable Remote Code Execution
Vercel patched unauthenticated Next.js remote code execution in SVG image optimization, with no active exploitation reported.
Vercel released out-of-band Next.js patches for two critical remote code execution flaws and one high-severity denial-of-service bug. CVE-2026-96889 is a memory flaw in the upstream sharp library used by the Image Optimization API and can allow unauthenticated RCE on glibc-based Linux through SVG processing. A second critical issue affects App Router applications using Cache Components when a cached function returns multiple typed arrays, with a related React advisory and no workaround. Crafted requests can also exhaust CPU in App Router apps that expose a Server Action. Patches are in Next.js 16.4.1 and 15.5.28, and Vercel does not report active exploitation.
- CVE-2026-96889 is a critical memory flaw in sharp used for SVG optimization.
- Unauthenticated RCE applies on glibc Linux; musl and Alpine are not named.
- A second critical bug affects App Router Cache Components returning typed arrays.
- High-severity CPU denial of service hits App Router apps with Server Actions.
- Fixed in Next.js 16.4.1 and 15.5.28; sharp should be 0.35.5 or later.
- CVEs
- CVE-2026-96889
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-96889 | Use-After-Free in librsvg SVG Parsing via Nested XIncludes and Duplicate Entities | 7.8 | 1% | PoC |
From the original article
2 min read at gbhackers.com
Vercel has released an out-of-band security update for Next. js that fixes two critical remote code execution (RCE) flaws and one high-severity denial-of-service (DoS) bug. One of the critical flaws, CVE-2026-96889 (GHSA-2464-fhr4-w9xw), sits in the Image Optimization API and is triggered through SVG processing.
By Kavichselvan · gbhackers.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.