CVE-2022-21721 Details
Description
Next.js is a React framework. Starting with version 12.0.0 and prior to version 12.0.9, vulnerable code could allow a bad actor to trigger a denial of service attack for anyone using i18n functionality. In order to be affected by this CVE, one must use next start or a custom server and the built-in i18n support. Deployments on Vercel, along with similar environments where invalid requests are filtered before reaching Next.js, are not affected. A patch has been released, `[email protected]`, that mitigates this issue. As a workaround, one may ensure `/${locale}/_next/` is blocked from reaching the Next.js instance until it becomes feasible to upgrade.
A denial-of-service vulnerability has been identified in Next.js, a React framework, affecting versions 12.0.0 prior to 12.0.9. The issue arises for users employing the built-in internationalization (i18n) support, and who are running their applications with 'next start' or a custom server. In these cases, a malicious actor could exploit the vulnerability by sending requests that trigger a heap overflow error, causing the application to crash. Notably, deployments on Vercel or similar environments that filter invalid requests before they reach Next.js are not affected.
Users can upgrade to Next.js version 12.0.9, which addresses this vulnerability. For those unable to upgrade immediately, it is recommended to block the 'next' static files under the i18n locale prefix from reaching the Next.js instance until an upgrade can be performed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 25, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vercel/next.js/pull/33503 | CVE | PatchThird Party Advisory |
| https://github.com/vercel/next.js/releases/tag/v12.0.9 | CVE | Release NotesThird Party Advisory |
| https://github.com/vercel/next.js/security/advisories/GHSA-wr66-vrwm-5g5x | CVE | Third Party Advisory |
| https://github.com/vercel/next.js/pull/33503 | [email protected] | PatchThird Party Advisory |
| https://github.com/vercel/next.js/releases/tag/v12.0.9 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/vercel/next.js/security/advisories/GHSA-wr66-vrwm-5g5x | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vercel next.js | >= 12.0.0, < 12.0.9 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jul 24, 2023 | Reanalysis | [email protected] |
| Feb 4, 2022 | Initial Analysis | [email protected] |
| Jan 28, 2022 | CVE Modified | [email protected] |