GitHub Advisoryadvisory · npm

GHSA-26w7-cxv4-gfx2 Astro: Remote code execution through AVIF image optimization

CRITICAL Published 2026-09-08 Modified 2026-09-08 Official page ↗
Ecosystem
npm
Packages
astro
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-125, CWE-787
Reviewed
2026-09-08

Affected packages

• npm astro: < 7.2.8 → fixed in 7.2.8

Description

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.

Related

Weakness · CWE (2)

  • CWE-125 Out-of-bounds Read weakness
  • CWE-787 Out-of-bounds Write weakness

References