CVE-2021-37699
JSON

6.9medium

Open Redirect in Next.js versions below 11.1.0

Severity
6.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.03% (higher than 63% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vxf5-wxwp-m7g9

Description

Next.js is an open source website development framework to be used with the React library. In affected versions specially encoded paths could be used when pages/_error.js was statically generated allowing an open redirect to occur to an external site. In general, this redirect does not directly harm users although can allow for phishing attacks by redirecting to an attacker's domain from a trusted domain. We recommend everyone to upgrade regardless of whether you can reproduce the issue or not. The issue has been patched in release 11.1.0.

Affected

Product or packageVersionsReported by
vercel next.js< 11.1.0, from 10.0.5 up to 10.2.0, from 11.0.0 up to 11.0.1CVE List, NVD
next (npm)from 0.9.9 before 11.1.0GitHub Advisory Database

All scores

GitHub_M6.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
GitHub6.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:N

Classification

What each source says

CVE List

Next.js is an open source website development framework to be used with the React library. In affected versions specially encoded paths could be used when pages/_error.js was statically generated allowing an open redirect to occur to an external site. In general, this redirect does not directly harm users although can allow for phishing attacks by redirecting to an attacker's domain from a trusted domain. We recommend everyone to upgrade regardless of whether you can reproduce the issue or not. The issue has been patched in release 11.1.0.

GitHub Advisory Database

Next.js is an open source website development framework to be used with the React library. In affected versions specially encoded paths could be used when pages/_error.js was statically generated, allowing an open redirect to occur to an external site. In general, this redirect does not directly harm users although it can allow for phishing attacks by redirecting to an attacker's domain from a trusted domain.

Impact
  • Affected: Users of Next.js between 10.0.5 and 10.2.0
  • Affected: Users of Next.js between 11.0.0 and 11.0.1 using pages/_error.js without getInitialProps
  • Affected: Users of Next.js between 11.0.0 and 11.0.1 using pages/_error.js and next export
  • Not affected: Deployments on Vercel (vercel.com) are not affected
  • Not affected: Deployments with pages/404.js
  • Note that versions prior to 0.9.9 package next npm package hosted a different utility (0.4.1 being the latest version of that codebase), and this advisory does not apply to those versions.

We recommend upgrading to the latest version of Next.js to improve the overall security of your application.

Patches

https://github.com/vercel/next.js/releases/tag/v11.1.0

NVD (es)

Next.js es un marco de desarrollo de sitios web de código abierto que se utilizará con la biblioteca React.&#xa0;En las versiones afectadas, rutas especialmente codificadas podrían ser usadas cuando pages/_error.js se generaron estáticamente, lo que permite que se produzca un redireccionamiento abierto a un sitio externo.&#xa0;En general, esta redirección no daña directamente a los usuarios, aunque puede permitir ataques de phishing al redirigir al dominio de un atacante desde un dominio de confianza.&#xa0;Recomendamos a todos que se actualicen, independientemente de si pueden reproducir el problema o no.&#xa0;El problema se corrigió en la versión 11.1.0

References

Sources

SourceRecordLicence
CVE ListCVE-2021-37699 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-vxf5-wxwp-m7g9 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-37699 changed 2026-06-17Public domain