CVE-2022-21721

Medium

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.

SeverityMedium
CVSS5.9
Exploit probability—
ProductVercel Next.js
PublishedJan 28, 2022
First seenJan 28, 2022

How to fix

Update
  • vercel next.js12.0.9 or later
  • next12.0.9 or later

Affected products

ProductAffected versionsFixed in
vercel next.js12.0.0 ≤ v < 12.0.912.0.9
nextnpm12.0.0 ≤ v < 12.0.912.0.9

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.