The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2026-27977

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

CVE-2026-27977 is an authentication bypass flaw in Vercel Next.js that allows attackers to connect to HMR websocket channels in dev mode. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 20, 2026

CVE-2026-27977 Overview

CVE-2026-27977 is an Origin Bypass vulnerability affecting Next.js, a popular React framework for building full-stack web applications. The vulnerability exists in the development mode (next dev) where cross-site protection for internal websocket endpoints incorrectly treats Origin: null as a bypass case, even when allowedDevOrigins is configured. This allows privacy-sensitive or opaque contexts, such as sandboxed documents, to establish unexpected connections to the Hot Module Replacement (HMR) websocket channel.

Critical Impact

Attackers with access to controlled content that can reach a vulnerable development server may connect to the HMR websocket channel and interact with development websocket traffic, potentially exposing sensitive development data or enabling unauthorized interactions.

Affected Products

  • Vercel Next.js versions 16.0.1 through 16.1.6 (prior to 16.1.7)

Discovery Timeline

  • 2026-03-18 - CVE CVE-2026-27977 published to NVD
  • 2026-03-18 - Last updated in NVD database

Technical Details for CVE-2026-27977

Vulnerability Analysis

This vulnerability involves an authorization bypass in the cross-site origin validation logic of Next.js development mode. When a websocket connection request arrives at the /_next/webpack-hmr endpoint with an Origin: null header, the server fails to properly validate this origin against the configured allowedDevOrigins list. The Origin: null value is commonly sent by browsers for requests originating from privacy-sensitive contexts such as sandboxed iframes, local file:// URLs, or cross-origin redirects.

The flaw allows an attacker who can serve malicious content that reaches the development server to bypass the intended origin restrictions and establish a websocket connection to the HMR channel. This could enable the attacker to observe real-time code changes, inject malicious payloads into the development workflow, or gather information about the application being developed.

Root Cause

The root cause lies in the blockCrossSite function within the router server logic. The original implementation did not properly validate Origin: null headers through the same cross-site origin-allowance checks applied to other origin values. When the origin header was null, the validation logic treated it as a special bypass case rather than subjecting it to the configured allowlist restrictions.

Attack Vector

The attack requires network access to the vulnerable Next.js development server. An attacker must be able to serve content (such as a malicious webpage or sandboxed document) that can initiate websocket connections to the target development server. The attack exploits the permissive handling of Origin: null headers by:

  1. Serving content from a privacy-sensitive context (e.g., sandboxed iframe) that sends Origin: null
  2. Initiating a websocket connection to /_next/webpack-hmr on the target development server
  3. Establishing an unauthorized connection to the HMR channel despite allowedDevOrigins configuration

The following patch demonstrates the security fix applied by Vercel:

typescript
 import { NEXT_PATCH_SYMBOL } from './patch-fetch'
 import type { ServerInitResult } from './render-server'
 import { filterInternalHeaders } from './server-ipc/utils'
-import { blockCrossSite } from './router-utils/block-cross-site'
+import { blockCrossSiteDEV } from './router-utils/block-cross-site-dev'
 import { traceGlobals } from '../../trace/shared'
 import { NoFallbackError } from '../../shared/lib/no-fallback-error.external'
 import {

Source: GitHub Commit Changes

typescript
   return true
 }
 
-function isInternalDevEndpoint(req: IncomingMessage): boolean {
+function isInternalEndpoint(req: IncomingMessage): boolean {
   if (!req.url) return false
 
   try {

Source: GitHub Commit Changes

Detection Methods for CVE-2026-27977

Indicators of Compromise

  • Unexpected websocket connections to /_next/webpack-hmr endpoints from unknown or null origins
  • Network logs showing HMR websocket connections originating from sandboxed iframes or privacy-sensitive contexts
  • Development server logs indicating websocket upgrade requests with Origin: null headers

Detection Strategies

  • Monitor development server access logs for websocket upgrade requests to /_next/webpack-hmr with suspicious or null origin headers
  • Implement network-level monitoring to detect unexpected external connections to development server ports
  • Review proxy logs for websocket connections that bypass expected origin restrictions

Monitoring Recommendations

  • Configure network firewalls to alert on external connections to development server ports
  • Implement logging for all websocket connections to HMR endpoints including origin header values
  • Use development environment isolation to prevent exposure of dev servers to untrusted networks

How to Mitigate CVE-2026-27977

Immediate Actions Required

  • Upgrade Next.js to version 16.1.7 or later immediately
  • Ensure development servers are not exposed to untrusted networks
  • Review network configurations to restrict access to development environments
  • If using a reverse proxy, configure it to block websocket upgrades to /_next/webpack-hmr when the Origin header is null

Patch Information

Vercel has addressed this vulnerability in Next.js version 16.1.7. The fix ensures that Origin: null headers are validated through the same cross-site origin-allowance checks used for other origins. The patch modifies the internal origin validation functions to properly handle null origin cases.

For detailed patch information, see the GitHub Security Advisory GHSA-jcc7-9wpm-mj36 and the GitHub Release v16.1.7.

Workarounds

  • Do not expose next dev to untrusted networks or the public internet
  • Block websocket upgrades to /_next/webpack-hmr at the proxy level when the Origin header is null
  • Use network segmentation to isolate development environments from potentially malicious content sources
bash
# Example nginx configuration to block null origin websocket upgrades
location /_next/webpack-hmr {
    # Block requests with null Origin header
    if ($http_origin = "null") {
        return 403;
    }
    proxy_pass http://localhost:3000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechNext.js

  • SeverityLOW

  • CVSS Score2.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-1385
  • Technical References
  • GitHub Release v16.1.7
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-jcc7-9wpm-mj36
  • Related CVEs
  • CVE-2026-29057: Vercel Next.js Auth Bypass Vulnerability

  • CVE-2024-51479: Vercel Next.js Auth Bypass Vulnerability

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

  • CVE-2026-27979: Vercel Next.js DoS Vulnerability
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