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

CVE-2025-59472: Next.js has Unbounded Memory Consumption via PPR Resume Endpoint

January 28, 2026

A denial of service vulnerability exists in Next.js versions with Partial Prerendering (PPR) enabled when running in minimal mode. The PPR resume endpoint accepts unauthenticated POST requests with the Next-Resume: 1 header and processes attacker-controlled postponed state data. Two closely related vulnerabilities allow an attacker to crash the server process through memory exhaustion:

  1. Unbounded request body buffering: The server buffers the entire POST request body into memory using Buffer.concat() without enforcing any size limit, allowing arbitrarily large payloads to exhaust available memory.

  2. Unbounded decompression (zipbomb): The resume data cache is decompressed using inflateSync() without limiting the decompressed output size. A small compressed payload can expand to hundreds of megabytes or gigabytes, causing memory exhaustion.

Both attack vectors result in a fatal V8 out-of-memory error (FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory) causing the Node.js process to terminate. The zipbomb variant is particularly dangerous as it can bypass reverse proxy request size limits while still causing large memory allocation on the server.

To be affected, an application must run with experimental.ppr: true or cacheComponents: true configured along with the NEXT_PRIVATE_MINIMAL_MODE=1 environment variable.

Strongly consider upgrading to 15.6.0-canary.61 or 16.1.5 to reduce risk and prevent availability issues in Next applications.

References

  • github.com/advisories/GHSA-5f7q-jpqc-wp7h
  • github.com/vercel/next.js
  • github.com/vercel/next.js/security/advisories/GHSA-5f7q-jpqc-wp7h
  • nvd.nist.gov/vuln/detail/CVE-2025-59472
  • vercel.com/changelog/summaries-of-cve-2025-59471-and-cve-2025-59472

Code Behaviors & Features

Detect and mitigate CVE-2025-59472 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 15.0.0-canary.0 before 15.6.0-canary.61, all versions starting from 16.0.0-beta.0 before 16.1.5

Fixed versions

  • 15.6.0-canary.61
  • 16.1.5

Solution

Upgrade to versions 15.6.0-canary.61, 16.1.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-400: Uncontrolled Resource Consumption
  • CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/next/CVE-2025-59472.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 04 Feb 2026 00:36:48 +0000.