# GHSA-2XP9-VWFH-VXW4

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.5 (OSV · Npm); no exploitation reported by the 5 checked sources; EPSS not yet published
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-09-08 · Modified: 2026-09-08
- Record: https://cvemate.com/vulnerability/GHSA-2XP9-VWFH-VXW4 · JSON: https://cvemate.com/vulnerability/GHSA-2XP9-VWFH-VXW4/json

## Description

```text
Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used

A vulnerability in the underlying `libheif` library used by `sharp` which Next.js uses for image optimization can lead to remote code execution when AVIF files are optimized.

Until a fix has propagated, optimization of AVIF files is disabled.
```

## Signals

- CVSS: 9.5 critical (v4.0, OSV · Npm) CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- EPSS: not scored
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Npm next (Npm): ≥ 10.0.0, \< 15.5.24 \| ≥ 16.0.0, \< 16.3.3

## References

- <https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497>
- <https://github.com/vercel/next.js/security/advisories/GHSA-2xp9-vwfh-vxw4>
- <https://github.com/vercel/next.js/pull/97875>
- <https://github.com/vercel/next.js/pull/97931>
- <https://github.com/vercel/next.js/commit/3a15b4ac6ac8e70b1a9b18ecc18e8434462899b3>
- <https://github.com/vercel/next.js/commit/409772ec807def20132d251ad48fd8d8ad4c73c2>
- <https://github.com/vercel/next.js/commit/7a5937a8ab20b89d0a961f75eabb11577f5d5998>
- <https://github.com/vercel/next.js>
- <https://github.com/vercel/next.js/releases/tag/v15.5.24>
- <https://github.com/vercel/next.js/releases/tag/v16.3.3>

---

Data as of 2026-12-05T12:50:27.300Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
