CVE-2022-36046 Unexpected server crash in Next.js version 12.2.3
Attackers can crash Next.js servers by triggering unhandled rejections in specific Node.js environments using next start or custom servers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-36046?
CVE-2022-36046 is a medium-severity denial of service vulnerability in Vercel Next.js, published on 31 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Next.js is a React framework that can provide building blocks to create web applications. All of the following must be true to be affected by this CVE: Next.js version 12.2.3, Node.js version above v15.0.0 being used with strict `unhandledRejection` exiting AND using next start or a [custom server](https://nextjs.org/docs/advanced-features/custom-server). Deployments on Vercel ([vercel.com](https://vercel.com/)) are not affected along with similar environments where `next-server` isn't being shared across requests.
Which versions are affected by CVE-2022-36046?
3 open source packages ship an affected version, including next and nextjs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
next npm | From 12.2.3 | 12.2.4 |
next npm | From 12.2.3 | 12.2.4 |
nextjs PyPI | All versions to 12.2.3 | None |
Products include Vercel Next.js.
How do I fix CVE-2022-36046?
Upgrade next to 12.2.4 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-36046 being exploited?
There is no known exploitation of CVE-2022-36046 in the wild and no public exploit code.
Other vulnerabilities in Vercel Next.js
- CVE-2025-29927 Authorization Bypass in Next.js Middleware
- CVE-2026-44578 Next.js: Server-side request forgery in applications using WebSocket upgrades
- CVE-2026-94483 Next.js: Server-Side Request Forgery in Image Optimization
- CVE-2026-64642 Next.js: Middleware / Proxy bypass in App Router applications using Turbopack and single locale
- CVE-2026-64645 Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname
Sources
Also known as GHSA-wff4-fpwg-qqv3, PYSEC-2022-43188.