{"id":"CVE-2021-37699","aliases":["CVE-2021-37699","GHSA-vxf5-wxwp-m7g9"],"related":[],"kind":"vulnerability","state":"published","title":"Open Redirect in Next.js versions below 11.1.0","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n### Impact\n\n- **Affected:** Users of Next.js between `10.0.5` and `10.2.0`\n- **Affected:** Users of Next.js between `11.0.0` and `11.0.1` using `pages/_error.js` without `getInitialProps`\n- **Affected:** Users of Next.js between `11.0.0` and `11.0.1` using `pages/_error.js` and `next export`\n- **Not affected**: Deployments on Vercel ([vercel.com](https://vercel.com)) are not affected\n- **Not affected:** Deployments **with** `pages/404.js`\n- 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.\n\nWe recommend upgrading to the latest version of Next.js to improve the overall security of your application.\n\n### Patches\n\nhttps://github.com/vercel/next.js/releases/tag/v11.1.0","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-08-11T23:15:10.000Z","modified":"2026-07-08T06:00:27.645Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"< 11.1.0","status":"affected"}],"vendor":"vercel","product":"next.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.9.9","status":"affected","fixed":"11.1.0"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"10.0.5","lastAffected":"10.2.0"},{"status":"affected","introduced":"11.0.0","lastAffected":"11.0.1"}],"vendor":"vercel","product":"next.js","cpe":"cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-vxf5-wxwp-m7g9","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vercel/next.js/releases/tag/v11.1.0","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37699","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-37699","url":"https://www.cve.org/CVERecord?id=CVE-2021-37699","licence":"CVE Terms of Use","modified":"2024-08-04T01:23:01.488Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vxf5-wxwp-m7g9","url":"https://github.com/advisories/GHSA-vxf5-wxwp-m7g9","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:27.645Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-37699","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37699","licence":"Public domain","modified":"2026-06-17T04:01:00.680Z"}],"updatedAt":"2026-11-25T22:58:03.142Z","epss":{"score":0.01033,"percentile":0.63064,"date":"2026-11-30T12:00:22.000Z"}}