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

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-09-08T21:26:16.000Z
- Modified: 2026-09-08T21:30:05.563Z
- Weaknesses: CWE-125, CWE-787

## 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.

(As written by GitHub Advisory Database.)

## Affected

- astro (npm): before 7.2.8

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497> (web)
- <https://github.com/withastro/astro/security/advisories/GHSA-26w7-cxv4-gfx2> (web)
- <https://github.com/withastro/astro/commit/ecb4082131490b4fe9a56aa44fda84b54ef8967b> (web)
- <https://github.com/withastro/astro> (package)
- <https://github.com/withastro/astro/releases/tag/astro@7.2.8> (web)

## Sources

- GitHub Advisory Database: [GHSA-26w7-cxv4-gfx2](https://github.com/advisories/GHSA-26w7-cxv4-gfx2), CC-BY-4.0, modified 2026-09-08

---

Page: https://cve.day/GHSA-26w7-cxv4-gfx2 · Whole record: https://cve.day/GHSA-26w7-cxv4-gfx2.json · Rebuilt by cve.day 2026-11-25T22:56:43.567Z
