GHSA-26w7-cxv4-gfx2: Critical severity npm/astro vulnerability

Published Sep 8, 2026
·
Updated

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.

Affected Software

1 affected componentFixes available
npm/astro<7.2.8
7.2.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/astro to a version that resolves this vulnerability.

    Fixed in 7.2.8
  2. Upgrade

    Upgrade Astro to a version that resolves this vulnerability.

    Fixed in 7.2.8
  3. Upgrade

    Upgrade Sharp to a version that resolves this vulnerability.

    Fixed in 0.35.4

Event History

Sep 8, 2026
Advisory Published
via GitHub·09:26 PM
Data Sourced
via GitHub·09:26 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which Astro deployments are exposed to this issue?

Projects are affected when an attacker can cause Astro to process an untrusted AVIF image. The vulnerable image-processing path uses Astro's default Sharp image service, which relies on libheif.

2

What does an attacker need to exploit the vulnerability?

An attacker needs to supply or otherwise cause the project to optimize a malicious AVIF image. No authentication or user interaction is required according to the provided severity vector.

3

What should be updated to remediate the issue?

Update Astro to version 7.2.8, which includes the fix. This update requires Sharp 0.35.4.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203