# CVE-2020-15242: Open Redirect in Next.js

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2020-10-08T19:28:07.000Z
- Modified: 2026-09-10T03:48:35.467Z
- Also known as: GHSA-x56p-c8cg-q435
- Weaknesses: CWE-601
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vercel next.js: >= 9.5.0, <9.5.4; from 9.5.0 before 9.5.4
- next (npm): from 9.5.0 before 9.5.4

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## 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

- CVE List: [CVE-2020-15242](https://www.cve.org/CVERecord?id=CVE-2020-15242), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-x56p-c8cg-q435](https://github.com/advisories/GHSA-x56p-c8cg-q435), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-15242](https://nvd.nist.gov/vuln/detail/CVE-2020-15242), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15242 · Whole record: https://cve.day/CVE-2020-15242.json · Rebuilt by cve.day 2026-11-25T22:57:55.097Z
