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.

Severity
MEDIUM
CVSS v3
5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H · source cna
Exploit chance (EPSS)
2.153%
chance of exploitation in the next 30 days
higher than 82.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impactpartial
Scored2025-04-25

Timeline

  1. 2022-01-28Published by the CNA22:00 UTC
  2. 2022-01-28GitHub advisory published (GHSA-wr66-vrwm-5g5x)same day
  3. 2025-04-25CISA SSVC decision recorded1183 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-wr66-vrwm-5g5x, affected packages:

PackageVulnerable versionsFixed in
npm nextfrom 12.0.0 before 12.0.912.0.9

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
vercel next.jsfrom 12.0.0 before 12.0.9fixed in 12.0.912.0.9

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources