CVE-2022-21721
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, `next@12.0.9`, 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.
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-04-25 |
Timeline
- 2022-01-28Published by the CNA22:00 UTC
- 2022-01-28GitHub advisory published (GHSA-wr66-vrwm-5g5x)same day
- 2025-04-25CISA SSVC decision recorded1183 days after publication
Exploit and advisory records
GitHub advisory GHSA-wr66-vrwm-5g5x, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm next | from 12.0.0 before 12.0.9 | 12.0.9 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| vercel next.js | from 12.0.0 before 12.0.9fixed in 12.0.9 | 12.0.9 |
References
- https://github.com/vercel/next.js/pull/33503
- https://github.com/vercel/next.js/releases/tag/v12.0.9
- https://github.com/vercel/next.js/security/advisories/GHSA-wr66-vrwm-5g5x
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-21721'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-21721'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-21721'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-21721'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).