{"id":"GHSA-26w7-cxv4-gfx2","aliases":["GHSA-26w7-cxv4-gfx2"],"related":[],"kind":"vulnerability","state":"published","title":"Astro: Remote code execution through AVIF image optimization","summary":"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.\n\nProjects are affected when an attacker can cause Astro to process an untrusted AVIF image.\n\nThe fix was released in Astro 7.2.8, which requires Sharp 0.35.4.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\nProjects are affected when an attacker can cause Astro to process an untrusted AVIF image.\n\nThe fix was released in Astro 7.2.8, which requires Sharp 0.35.4.","format":"markdown","source":"ghsa"}],"published":"2026-09-08T21:26:16.000Z","modified":"2026-09-08T21:30:05.563Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-125","CWE-787"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.2.8"}],"ecosystem":"npm","package":"astro","purl":"pkg:npm/astro","source":"ghsa"}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/withastro/astro/security/advisories/GHSA-26w7-cxv4-gfx2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/withastro/astro/commit/ecb4082131490b4fe9a56aa44fda84b54ef8967b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/withastro/astro","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/withastro/astro/releases/tag/astro@7.2.8","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-26w7-cxv4-gfx2","url":"https://github.com/advisories/GHSA-26w7-cxv4-gfx2","licence":"CC-BY-4.0","modified":"2026-09-08T21:30:05.563Z"}],"updatedAt":"2026-11-25T22:56:43.567Z"}