CVE-2022-21721: vercel next.js
Vulnerability summary
CVE-2022-21721 is a high (CVSS 7.5) vulnerability in vercel next.js. EPSS estimates a 2.15% chance of exploitation in the next 30 days, higher than 81.9% of scored vulnerabilities.
Timeline
- 28-01-2022PublishedVulnerability first disclosed.
- 05-05-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · NpmEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
2.15%
Chance of exploitation in the next 30 days
Percentile
82%
Versus all other CVEs
30-day change
0.00 pp
From 2.15% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Npm1 product
- next≥ 12.0.0, < 12.0.9
Vercel1 product
- next.js≥ 12.0.0, < 12.0.9
2 vendors · 2 products
References
5 links- github.com/vercel/next.js/security/advisories/GHSA-wr66-vrwm-5g5xX Refsource CONFIRMWEBThird Party Advisory
- github.com/vercel/next.jsPACKAGE