Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next
  4. ›
  5. CVE-2026-44577

CVE-2026-44577: Next.js has a Denial of Service in the Image Optimization API

May 11, 2026 (updated May 14, 2026)

When self-hosting Next.js with the default image loader, the Image Optimization API fetches local images entirely into memory without enforcing a maximum size limit. An attacker could cause out-of-memory conditions by requesting large local assets from the /_next/image endpoint that match the images.localPatterns configuration (by default, all patterns are allowed).

  • If you are using images.localPatterns, only the patterns in that array are impacted.
  • If you are using images.unoptimized: true, you are NOT impacted.
  • If you are using images.loader: 'custom', you are NOT impacted.
  • If you are using Vercel, you are NOT impacted.

References

  • github.com/advisories/GHSA-h64f-5h5j-jqjh
  • github.com/vercel/next.js/releases/tag/v15.5.16
  • github.com/vercel/next.js/releases/tag/v16.2.5
  • github.com/vercel/next.js/security/advisories/GHSA-h64f-5h5j-jqjh
  • nvd.nist.gov/vuln/detail/CVE-2026-44577

Code Behaviors & Features

Detect and mitigate CVE-2026-44577 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 10.0.0 before 15.5.16, all versions starting from 16.0.0 before 16.2.5

Fixed versions

  • 15.5.16
  • 16.2.5

Solution

Upgrade to versions 15.5.16, 16.2.5 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/next/CVE-2026-44577.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:53 +0000.