En resumen
- CVE-2022-21721 es una vulnerabilidad ALTO (CVSS 7.5) que afecta a next.js (vercel), next.
- Probabilidad de explotación en los próximos 30 días (EPSS): 2.2%, mayor que el 82.2% de las vulnerabilidades.
- Solución: actualizar a 12.0.9 o posterior.
| Package | Affected versions | Patched versions |
|---|
| next.js | ≥ 12.0.0, < 12.0.9
| 12.0.9
|
| next npm | ≥ 12.0.0, < 12.0.9
| 12.0.9
|
Description
Impact
Vulnerable code could allow a bad actor to trigger a denial of service attack for anyone running a Next.js app at version >= 12.0.0, and using i18n functionality.
- Affected: All of the following must be true to be affected by this CVE
- Next.js versions above v12.0.0
- Using next start or a custom server
- Using the built-in i18n support
- Not affected:
- Deployments on Vercel (vercel.com) are not affected along with similar environments where invalid requests are filtered before reaching Next.js.
Patches
A patch has been released, [email protected], that mitigates this issue. We recommend all affected users upgrade as soon as possible.
Workarounds
We recommend upgrading whether you can reproduce or not although you can ensure /${locale}/_next/ is blocked from reaching the Next.js instance until you upgrade.
For more information
If you have any questions or comments about this advisory:
NVD 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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free