Menu

1 / 5

Reproducing, disclosing, and fixing the libheif vulnerability with Hacktron and the maintainers

Vercel News·Karim Rahal·5 days ago
#EKychWiM
#vercel#next#libheif#optimization#august
Reading 0:00
15s threshold

In August 2026, Hacktron reported what looked like a remote code execution (RCE) vulnerability in Next.js image optimization. Their investigation found that the vulnerable code was not in Next.js itself, but upstream in libheif, an AVIF image decoder used by Next.js, ImageMagick , WordPress , sharp , and much of the web.

Shortly after Hacktron notified us, we worked with them to reproduce the RCE against a current Next.js build and disclose it to the maintainers of sharp, libvips, and libheif. We then deployed a platform-wide mitigation on Vercel and started working with the maintainers on a fix.

Copy link to heading The dependency chain

Next.js image optimization lets applications resize and optimize images through the <Image> component ( next/image ).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.