GHSA-26w7-cxv4-gfx2: Critical severity npm/astro vulnerability
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/astroto a version that resolves this vulnerability.Fixed in 7.2.8 - Upgrade
Upgrade
Astroto a version that resolves this vulnerability.Fixed in 7.2.8 - Upgrade
Upgrade
Sharpto a version that resolves this vulnerability.Fixed in 0.35.4
Event History
Frequently Asked Questions
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.
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.
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.