CriticalGHSA-26w7-cxv4-gfx2

Astro: Remote code execution through AVIF image optimization

Published 8 Sept 2026 · Updated 8 Sept 2026

Affected package

Affected
<7.2.8
Fixed in
7.2.8
Update to the fixed version for your release line, for example:npm install astro@7.2.8

Details

A vulnerability in libheif, used by the default Sharp image service in Astro, can lead to remote code execution when a malicious AVIF image is optimized.

Projects are affected when an attacker can cause Astro to process an untrusted AVIF image.

The fix was released in Astro 7.2.8, which requires Sharp 0.35.4.

Is GHSA-26w7-cxv4-gfx2 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected astro, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.