4.7medium
Open Redirect in Next.js
- Severity
- 4.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-x56p-c8cg-q435
Description
Next.js versions >=9.5.0 and <9.5.4 are vulnerable to an Open Redirect. Specially encoded paths could be used with the trailing slash redirect to allow 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 attackers domain from a trusted domain. The issue is fixed in version 9.5.4.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| vercel next.js | >= 9.5.0, <9.5.4, from 9.5.0 before 9.5.4 | CVE List, NVD |
| next (npm) | from 9.5.0 before 9.5.4 | GitHub Advisory Database |
All scores
| GitHub_M | 4.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| GitHub | 4.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
Next.js versions >=9.5.0 and <9.5.4 are vulnerable to an Open Redirect. Specially encoded paths could be used with the trailing slash redirect to allow 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 attackers domain from a trusted domain. The issue is fixed in version 9.5.4.
GitHub Advisory Database
Impact
- Affected: Users of Next.js between 9.5.0 and 9.5.3
- Not affected: Deployments on Vercel (https://vercel.com) are not affected
- Not affected: Deployments using
next export
We recommend everyone to upgrade regardless of whether you can reproduce the issue or not.
Patches
https://github.com/vercel/next.js/releases/tag/v9.5.4
References
NVD (es)
Next.js versiones de posteriores e incluyendo a 9.5.0 y anteriores a 9.5.4, son vulnerables a un redireccionamiento abierto. Pueden ser utilizadas rutas especialmente codificadas con el redireccionamiento de la barra diagonal para permitir que se produzca una redireccionamiento abierto hacia un sitio externo. En general, este redireccionamiento abierto no daña directamente a usuarios, aunque puede permitir ataques de phishing al redirigir a un dominio de atacantes desde un dominio de confianza. El problema es corregido en la versión 9.5.4
References
| https://github.com/vercel/next.js/security/advisories/GHSA-x56p-c8cg-q435 | patch, third-party-advisory, web | |
| https://github.com/zeit/next.js/releases/tag/v9.5.4 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-15242 | advisory | |
| https://github.com/vercel/next.js | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15242 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x56p-c8cg-q435 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2020-15242 changed 2026-06-17 | Public domain |