Medium

Next.js has Unbounded Memory Consumption via PPR Resume Endpoint

  • Disclosed: 28.01.2026
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package next >= 16.0.0-beta.0, < 16.1.5, >= 15.0.0-canary.0, <= 15.0.0-canary.205, >= 15.0.1-canary.0, <= 15.0.1-canary.3, >= 15.0.2-canary.0, <= 15.0.2-canary.11, >= 15.0.3-canary.0, <= 15.0.3-canary.9, >= 15.0.4-canary.0, <= 15.0.4-canary.52, >= 15.1.1-canary.0, <= 15.1.1-canary.27, >= 15.2.0-canary.0, <= 15.2.0-canary.77, >= 15.2.1-canary.0, <= 15.2.1-canary.6, >= 15.2.2-canary.0, <= 15.2.2-canary.7, >= 15.3.0-canary.0, <= 15.3.0-canary.46, >= 15.3.1-canary.0, <= 15.3.1-canary.15, >= 15.4.0-canary.0, <= 15.4.0-canary.130, >= 15.4.2-canary.0, <= 15.4.2-canary.56, >= 15.5.1-canary.0, <= 15.5.1-canary.39, >= 15.6.0-canary.0, < 15.6.0-canary.61 16.1.5, 15.6.0-canary.61

References

CVSS score 5.9/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-400, CWE-409, CWE-770
Platform
npm
Package
next
Disclosed
28.01.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-5f7q-jpqc-wp7h - CC BY 4.0

Vulnerability history: next

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (73) in the archive
Total entries
73
First → latest
12.2017 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 5
  • High 27
  • Medium 32
  • Low 9

Disclosures per year

  1. 2017: 1
  2. 2018: 2
  3. 2019: 0
  4. 2020: 3
  5. 2021: 3
  6. 2022: 3
  7. 2023: 1
  8. 2024: 6
  9. 2025: 14
  10. 2026: 40
Severity:
  1. High · 6.5 CVE-2026-94483 >= 16.0.0, < 16.3.8 16.3.8
  2. Critical ghsa-vcvr-r3jv-pc5j >= 16.2.0, < 16.3.6 16.3.6
  3. Critical ghsa-2xp9-vwfh-vxw4 >= 10.0.0, < 15.5.24, >= 16.0.0, < 16.3.3 15.5.24, 16.3.3
  4. Critical · 9.0 CVE-2026-75604 >= 13.4.0, < 15.5.24, >= 16.0.0, < 16.3.3 15.5.24, 16.3.3
  5. High CVE-2026-64649 >= 14.1.1, < 15.5.21, >= 16.0.0, < 16.2.11 15.5.21, 16.2.11
  6. High CVE-2026-64645 >= 12.0.0, < 15.5.21, >= 16.0.0, < 16.2.11 15.5.21, 16.2.11
  7. High CVE-2026-64641 >= 13.0.0, < 15.5.21, >= 16.0.0, < 16.2.11 15.5.21, 16.2.11
  8. High · 7.5 CVE-2026-45109 >= 15.2.0, < 15.5.18, >= 16.0.0, < 16.2.6 15.5.18, 16.2.6
  9. High · 7.5 CVE-2026-44579 >= 15.0.0, < 15.5.16, >= 16.0.0, < 16.2.5 15.5.16, 16.2.5
  10. High · 8.6 CVE-2026-44578 >= 13.4.13, < 15.5.16, >= 16.0.0, < 16.2.5 15.5.16, 16.2.5
  11. High · 7.5 CVE-2026-44575 >= 15.2.0, < 15.5.16, >= 16.0.0, < 16.2.5 15.5.16, 16.2.5
  12. High · 8.1 CVE-2026-44574 >= 15.4.0, < 15.5.16, >= 16.0.0, < 16.2.5 15.5.16, 16.2.5
  13. High · 7.5 CVE-2026-44573 >= 12.2.0, < 15.5.16, >= 16.0.0, < 16.2.5 15.5.16, 16.2.5
  14. High · 7.5 ghsa-8h8q-6873-q5fj >= 13.0.0, < 15.5.16, >= 16.0.0, < 16.2.5 15.5.16, 16.2.5
  15. High · 7.5 ghsa-q4gf-8mx6-v5v3 >= 13.0.0, < 15.5.15, >= 16.0.0-beta.0, < 16.2.3 15.5.15, 16.2.3
  16. High · 7.5 ghsa-h25m-26qc-wcjf >= 13.0.0, < 15.0.8, >= 15.1.1-canary.0, < 15.1.12, >= 15.2.0-canary.0, < 15.2.9, >= 15.3.0-canary.0, < 15.3.9, >= 15.4.0-canary.0, < 15.4.11, >= 15.5.1-canary.0, < 15.5.10, >= 15.6.0-canary.0, < 15.6.0-canary.61, >= 16.0.0-beta.0, < 16.0.11, >= 16.1.0-canary.0, < 16.1.5 15.0.8, 15.1.12, 15.2.9, 15.3.9, 15.4.11, 15.5.10, 15.6.0-canary.61, 16.0.11, 16.1.5
  17. Next.js has Unbounded Memory Consumption via PPR Resume Endpoint this entry
    Medium · 5.9 CVE-2025-59472 >= 16.0.0-beta.0, < 16.1.5, >= 15.0.0-canary.0, <= 15.0.0-canary.205, >= 15.0.1-canary.0, <= 15.0.1-canary.3, >= 15.0.2-canary.0, <= 15.0.2-canary.11, >= 15.0.3-canary.0, <= 15.0.3-canary.9, >= 15.0.4-canary.0, <= 15.0.4-canary.52, >= 15.1.1-canary.0, <= 15.1.1-canary.27, >= 15.2.0-canary.0, <= 15.2.0-canary.77, >= 15.2.1-canary.0, <= 15.2.1-canary.6, >= 15.2.2-canary.0, <= 15.2.2-canary.7, >= 15.3.0-canary.0, <= 15.3.0-canary.46, >= 15.3.1-canary.0, <= 15.3.1-canary.15, >= 15.4.0-canary.0, <= 15.4.0-canary.130, >= 15.4.2-canary.0, <= 15.4.2-canary.56, >= 15.5.1-canary.0, <= 15.5.1-canary.39, >= 15.6.0-canary.0, < 15.6.0-canary.61 16.1.5, 15.6.0-canary.61
  18. High · 7.5 ghsa-5j59-xgg2-r9c4 >= 13.3.1-canary.0, < 14.2.35, >= 15.0.6, < 15.0.7, >= 15.1.10, < 15.1.11, >= 15.2.7, < 15.2.8, >= 15.3.7, < 15.3.8, >= 15.4.9, < 15.4.10, >= 15.5.8, < 15.5.9, >= 15.6.0-canary.59, < 15.6.0-canary.60, >= 16.0.9, < 16.0.10, >= 16.1.0-canary.17, < 16.1.0-canary.19 14.2.35, 15.0.7, 15.1.11, 15.2.8, 15.3.8, 15.4.10, 15.5.9, 15.6.0-canary.60, 16.0.10, 16.1.0-canary.19
  19. High · 7.5 ghsa-mwv6-3258-q52c >= 13.3.0, < 14.2.34, >= 15.0.0-canary.0, < 15.0.6, >= 15.1.1-canary.0, < 15.1.10, >= 15.2.0-canary.0, < 15.2.7, >= 15.3.0-canary.0, < 15.3.7, >= 15.4.0-canary.0, < 15.4.9, >= 15.5.1-canary.0, < 15.5.8, >= 15.6.0-canary.0, < 15.6.0-canary.59, >= 16.0.0-beta.0, < 16.0.9, >= 16.1.0-canary.0, < 16.1.0-canary.17 14.2.34, 15.0.6, 15.1.10, 15.2.7, 15.3.7, 15.4.9, 15.5.8, 15.6.0-canary.59, 16.0.9, 16.1.0-canary.17
  20. Critical · 10.0 ghsa-9qr9-h5gf-34mp >= 14.3.0-canary.77, < 15.0.5, >= 15.1.0-canary.0, < 15.1.9, >= 15.2.0-canary.0, < 15.2.6, >= 15.3.0-canary.0, < 15.3.6, >= 15.4.0-canary.0, < 15.4.8, >= 15.5.0-canary.0, < 15.5.7, >= 16.0.0-canary.0, < 16.0.7 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7
  21. High · 7.5 CVE-2025-49826 >= 15.0.4-canary.51, < 15.1.8 15.1.8
  22. Critical · 9.1 CVE-2025-29927 >= 13.0.0, < 13.5.9, >= 14.0.0, < 14.2.25, >= 15.0.0, < 15.2.3, >= 12.0.0, < 12.3.5 13.5.9, 14.2.25, 15.2.3, 12.3.5
  23. High · 7.5 CVE-2024-51479 >= 9.5.5, < 14.2.15 14.2.15
  24. High · 7.5 CVE-2024-46982 >= 13.5.1, < 13.5.7, >= 14.0.0, < 14.2.10 13.5.7, 14.2.10
  25. High · 7.5 CVE-2024-39693 >= 13.3.1, < 13.5.0 13.5.0
  26. High · 7.5 CVE-2024-34351 >= 13.4.0, < 14.1.1 14.1.1
  27. High · 7.5 CVE-2024-34350 >= 13.4.0, < 13.5.1 13.5.1
  28. High · 7.5 CVE-2021-43803 >= 12.0.0, < 12.0.5, >= 0.9.9, < 11.1.3 12.0.5, 11.1.3
  29. High · 7.5 CVE-2021-39178 >= 10.0.0, < 11.1.1 11.1.1
  30. High ghsa-5vj8-3v2h-h38v >= 0.9.9, < 5.1.0 5.1.0
  31. High · 7.5 CVE-2018-6184 >= 1.0.0, < 4.2.3 4.2.3
  32. High · 7.5 CVE-2017-16877 >= 1.0.0, < 2.4.1 2.4.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.