VercelKarim Rahal4 min readintermediate
Reproducing, disclosing, and fixing the libheif vulnerability with Hacktron and the maintainers
Summary
Hacktron reported an RCE in libheif, an AVIF decoder used by Next.js image optimization. Vercel and Hacktron reproduced the issue, then coordinated with upstream maintainers (sharp, libvips, libheif) to deploy platform-wide mitigations and release fixes across the ecosystem.
- An RCE was found in libheif, an AVIF image decoder, reachable via Next.js image optimization through sharp and libvips.
- Vercel applied a platform-wide mitigation by disabling AVIF optimization in their central Image Optimization Service.
- Coordinated disclosure involved Vercel, Hacktron, and maintainers of sharp, libvips, and libheif over a two-week period.
- Next.js released a security update disabling AVIF optimization for self-hosted apps until the patched libheif propagated.
This post is important for engineers managing dependencies, especially in image processing, as it illustrates the challenges of securing complex open-source supply chains and the process of coordinated vulnerability disclosure.
7/10



