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

- Severity: Medium 5.9 (CVSS:3.1, scored by hackerone) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-01-26T21:43:05.099Z
- Modified: 2026-09-10T03:50:32.644Z
- Also known as: GHSA-5f7q-jpqc-wp7h
- Weaknesses: CWE-400, CWE-409, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: hackerone

## Description

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 you must have an application running 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.

(As written by CVE List.)

## Affected

- vercel next: from 15.0.0-canary.0 before 15.0.0; from 15.0.1-canary.0 before 15.0.1; from 15.0.2-canary.0 before 15.0.2; from 15.0.3-canary.0 before 15.0.3; from 15.0.4-canary.0 before 15.0.4; from 15.1.0-canary.0 before 15.1.0; from 15.1.1-canary.0 before 15.1.1; from 15.1.2-canary.0 before 15.1.2; from 15.1.3-canary.0 before 15.1.3; from 15.1.4-canary.0 before 15.1.4; from 15.1.5-canary.0 before 15.1.5; from 15.1.6-canary.0 before 15.1.6; and 48 more
- next (npm): from 16.0.0-beta.0 before 16.1.5; from 15.0.0-canary.0 up to 15.0.0-canary.205; from 15.0.1-canary.0 up to 15.0.1-canary.3; from 15.0.2-canary.0 up to 15.0.2-canary.11; from 15.0.3-canary.0 up to 15.0.3-canary.9; from 15.0.4-canary.0 up to 15.0.4-canary.52; from 15.1.1-canary.0 up to 15.1.1-canary.27; from 15.2.0-canary.0 up to 15.2.0-canary.77; from 15.2.1-canary.0 up to 15.2.1-canary.6; from 15.2.2-canary.0 up to 15.2.2-canary.7; from 15.3.0-canary.0 up to 15.3.0-canary.46; from 15.3.1-canary.0 up to 15.3.1-canary.15; and 4 more
- vercel next.js: from 15.0.0 before 15.6.0; from 16.0.0 before 16.1.5; 15.6.0

## Every score

- hackerone: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-5f7q-jpqc-wp7h> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59472> (advisory)
- <https://github.com/vercel/next.js> (package)
- <https://vercel.com/changelog/summaries-of-cve-2025-59471-and-cve-2025-59472> (web)

## Sources

- CVE List: [CVE-2025-59472](https://www.cve.org/CVERecord?id=CVE-2025-59472), CVE Terms of Use, modified 2026-01-27
- GitHub Advisory Database: [GHSA-5f7q-jpqc-wp7h](https://github.com/advisories/GHSA-5f7q-jpqc-wp7h), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-59472](https://nvd.nist.gov/vuln/detail/CVE-2025-59472), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59472 · Whole record: https://cve.day/CVE-2025-59472.json · Rebuilt by cve.day 2026-11-25T22:59:10.873Z
