VDB
KO
MEDIUM

GHSA-4c39-4ccg-62r3

Next.js: Unbounded Server Action payload in Edge runtime

Quick fix

GHSA-4c39-4ccg-62r3 — next: upgrade to the fixed version with the command below.

npm install next@15.5.21

Details

## Impact

Requests targeting Next.js applications using App Router with at least one Server Action can lead to excessive memory consumption if that Server Actions uses the Edge runtime

## Workarounds

If you cannot upgrade, ensure your hosting provider limits the request's body size. 5 MiB should be allowed at max by your hosting provider.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / next
Introduced in: 13.0.0 Fixed in: 15.5.21
Fix npm install next@15.5.21
npm / next
Introduced in: 16.0.0 Fixed in: 16.2.11
Fix npm install next@16.2.11

References