CVE-2026-27977 in Vercel Next.Js
Next.js is a React framework for building full-stack web applications. Starting in version 16.0.1 and prior to version 16.1.7, in `next dev`, cross-site protection for internal websocket endpoints could treat `Origin: null` as a bypass case even if `allowedDevOrigins` is configured, allowing privacy-sensitive/opaque...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Vercel | Next.Js | ≥ 16.0.1, < 16.1.7 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Next.js is a React framework for building full-stack web applications. Starting in version 16.0.1 and prior to version 16.1.7, in `next dev`, cross-site protection for internal websocket endpoints could treat `Origin: null` as a bypass case even if `allowedDevOrigins` is configured, allowing privacy-sensitive/opaque contexts (for example sandboxed documents) to connect unexpectedly. If a dev server is reachable from attacker-controlled content, an attacker may be able to connect to the HMR websocket channel and interact with dev websocket traffic. This affects development mode only. Apps without a configured `allowedDevOrigins` still allow connections from any origin. The issue is fixed in version 16.1.7 by validating `Origin: null` through the same cross-site origin-allowance checks used for other origins. If upgrading is not immediately possible, do not expose `next dev` to untrusted networks and/or block websocket upgrades to `/_next/webpack-hmr` when `Origin` is `null` at the proxy.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-27977 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-258575-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| Published | 2026-03-18 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1385: CWE-1385
Analysis AI-written, not human-reviewed
CVE-2026-27977 affects Next.js versions 16.0.1 to 16.1.6, where cross-site protection for internal websocket endpoints can be bypassed by treating 'Origin: null' as a valid origin, even if 'allowedDevOrigins' is configured. This allows privacy-sensitive contexts to connect unexpectedly.
An attacker can exploit this vulnerability by crafting a request with 'Origin: null' to connect to internal websocket endpoints of a Next.js application during development. This can lead to unauthorized access to sensitive data or functionality.
Questions
What is CVE-2026-27977?
CVE-2026-27977 affects Next.js versions 16.0.1 to 16.1.6, where cross-site protection for internal websocket endpoints can be bypassed by treating 'Origin: null' as a valid origin, even if 'allowedDevOrigins' is configured. This allows privacy-sensitive contexts to connect unexpectedly.
What is the CVSS score for CVE-2026-27977?
CVE-2026-27977 has CVSS 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N. EPSS: 0.3%.
Is CVE-2026-27977 actively exploited?
No confirmed active exploitation of CVE-2026-27977 as of 2026-09-25.
How do I remediate CVE-2026-27977?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-27977?
CVE-2026-27977 affects Vercel Next.Js.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Vercel","product":"Next.Js","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.