CriticalGHSA-26w7-cxv4-gfx2

Astro: Remote code execution through AVIF image optimization

Published 8 Sept 2026 · Updated 8 Sept 2026

Is your project on an affected astro?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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.

More advisories for astro

  • MediumCVE-2026-114128Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering · 22 Oct 2026
  • LowCVE-2026-114127Astro: Arbitrary CSS injection in Astro View Transitions · 22 Oct 2026
  • MediumCVE-2026-84376Astro: Authorization bypass from missing path-segment boundary check when stripping the configured base · 8 Sept 2026
  • MediumCVE-2026-73423Astro: composable `astro/hono` pipeline bypasses `security.checkOrigin` when `middleware()` is absent or misordered · 20 Jul 2026
  • MediumCVE-2026-59729Astro: XSS via unescaped spread attribute names in renderHTMLElement (incomplete fix for CVE-2026-54298) · 20 Jul 2026
  • LowCVE-2026-59727Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands · 20 Jul 2026
All 29 advisories for astro

References

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