Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-37699

CVE-2021-37699: Vercel Next.js Open Redirect Vulnerability

CVE-2021-37699 is an open redirect flaw in Vercel Next.js that enables phishing attacks through specially encoded paths. This article covers the technical details, affected versions, impact, and mitigation steps.

Published: March 4, 2026

CVE-2021-37699 Overview

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. While this redirect does not directly harm users, it can enable phishing attacks by redirecting users from a trusted domain to an attacker-controlled domain.

Critical Impact

Open redirect vulnerability enables phishing attacks by abusing trust in legitimate Next.js applications to redirect users to malicious external sites.

Affected Products

  • Vercel Next.js versions prior to 11.1.0
  • Next.js applications with statically generated pages/_error.js
  • Node.js deployments using vulnerable Next.js versions

Discovery Timeline

  • 2021-08-12 - CVE CVE-2021-37699 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-37699

Vulnerability Analysis

This vulnerability is classified as CWE-601 (URL Redirection to Untrusted Site, also known as Open Redirect). The issue occurs in Next.js applications where pages/_error.js has been statically generated. Under these conditions, an attacker can craft specially encoded URL paths that bypass normal validation and cause the application to redirect users to an arbitrary external site.

Open redirect vulnerabilities are particularly dangerous in the context of phishing attacks. When a trusted domain like a legitimate company website redirects to a malicious site, users are more likely to trust the destination since they believe they are navigating from a safe source. This exploitation of domain trust is a well-known social engineering technique.

The vulnerability requires user interaction—a victim must click on a maliciously crafted link that points to the vulnerable Next.js application. The application then processes the specially encoded path and performs the redirect to the attacker's domain.

Root Cause

The root cause of this vulnerability lies in insufficient input validation and URL sanitization within the Next.js routing mechanism when handling error pages. When pages/_error.js is statically generated, the framework fails to properly validate and sanitize specially encoded path segments, allowing attackers to inject external URLs that trigger redirects outside the application's intended domain.

Attack Vector

The attack is network-based and requires user interaction. An attacker would craft a malicious URL containing specially encoded path segments pointing to a vulnerable Next.js application. When a victim clicks on this link (typically delivered through email, social media, or other communication channels), the Next.js application processes the request and redirects the user to the attacker's external site.

This attack flow typically involves:

  1. Attacker identifies a Next.js application with statically generated pages/_error.js
  2. Attacker crafts a URL with specially encoded path components containing an external redirect destination
  3. Victim clicks the malicious link, trusting the legitimate domain
  4. Next.js application processes the request and redirects to the attacker's site
  5. Victim is now on a phishing site that may impersonate the original trusted domain

Detection Methods for CVE-2021-37699

Indicators of Compromise

  • Unusual URL patterns in access logs containing encoded characters in error page paths
  • Redirect responses (HTTP 3xx) pointing to external domains originating from error page routes
  • User reports of unexpected redirects when accessing legitimate application URLs

Detection Strategies

  • Monitor web server access logs for requests to error pages containing unusual URL-encoded characters
  • Implement Content Security Policy (CSP) headers to detect and block unauthorized redirects
  • Review referrer logs for patterns indicating users arriving at external sites from your application
  • Deploy web application firewall (WAF) rules to detect encoded redirect attempts

Monitoring Recommendations

  • Enable detailed logging for all HTTP 3xx redirect responses from your Next.js applications
  • Set up alerts for redirect responses pointing to domains outside your organization's allowlist
  • Monitor for spikes in error page requests that may indicate reconnaissance activity
  • Track user-reported phishing attempts that reference your organization's domains

How to Mitigate CVE-2021-37699

Immediate Actions Required

  • Upgrade all Next.js installations to version 11.1.0 or later immediately
  • Audit your Next.js applications to identify which have statically generated pages/_error.js
  • Review access logs for evidence of exploitation attempts
  • Notify users if potential phishing campaigns leveraging this vulnerability are detected

Patch Information

The vulnerability has been patched in Next.js release 11.1.0. Vercel recommends that all users upgrade regardless of whether the issue can be reproduced in their specific configuration. The patch information and release notes are available in the GitHub Release v11.1.0. Additional details about the vulnerability can be found in the GitHub Security Advisory GHSA-vxf5-wxwp-m7g9.

Workarounds

  • If immediate upgrade is not possible, consider switching from static generation to server-side rendering for error pages
  • Implement additional redirect validation at the reverse proxy or load balancer level
  • Deploy a web application firewall (WAF) with rules to block specially encoded redirect attempts
  • Use Content Security Policy headers to restrict where the application can redirect users
bash
# Upgrade Next.js to patched version
npm install next@11.1.0

# Verify installed version
npm list next

# For yarn users
yarn add next@11.1.0
yarn list next

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechNext.js

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.45%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-601
  • Technical References
  • GitHub Release v11.1.0

  • GitHub Security Advisory GHSA-vxf5-wxwp-m7g9
  • Related CVEs
  • CVE-2022-23646: Vercel Next.js UI Misrepresentation Flaw

  • CVE-2026-27977: Vercel Next.js Auth Bypass Vulnerability

  • CVE-2026-27978: Vercel Next.js CSRF Vulnerability

  • CVE-2026-27979: Vercel Next.js DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English