CVE-2026-27977
CVE-2026-27977 is a medium-severity vulnerability in Vercel Next.js with a CVSS 3.x base score of 5.4. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1385.
Key facts
- Severity: Medium (CVSS 3.x base score 5.4)
- CVSS v4: 2.3
- EPSS exploit prediction: 0% (7th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-12683
- Weakness: CWE-1385
- Affected product: Vercel Next.js
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-27977?
- 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.
- How severe is CVE-2026-27977?
- CVE-2026-27977 has a CVSS 3.x base score of 5.4, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2026-27977 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (7th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-27977?
- CVE-2026-27977 affects Vercel Next.js. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-27977?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2026-27977 have an EU (EUVD) identifier?
- Yes. CVE-2026-27977 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-12683.
- When was CVE-2026-27977 published?
- CVE-2026-27977 was published on 2026-03-18 and last updated on 2026-06-17.
References
- https://github.com/vercel/next.js/commit/862f9b9bb41d235e0d8cf44aa811e7fd118cee2a
- https://github.com/vercel/next.js/releases/tag/v16.1.7
- https://github.com/vercel/next.js/security/advisories/GHSA-jcc7-9wpm-mj36
Affected products (1)
- cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*
More vulnerabilities in Vercel Next.js
- CVE-2025-55182 — Critical (CVSS 10.0): A pre-authentication remote code execution vulnerability exists in React Server Components versions 19.0.0, 19.1.0,…
- CVE-2025-29927 — Critical (CVSS 9.1): Next.js is a React framework for building full-stack web applications. Starting in version 1.11.4 and prior to versions…
- CVE-2026-44578 — High (CVSS 8.6): Next.js is a React framework for building full-stack web applications. From 13.4.13 to before 15.5.16 and 16.2.5,…
- CVE-2026-44574 — High (CVSS 8.1): Next.js is a React framework for building full-stack web applications. From 15.4.0 to before 15.5.16 and 16.2.5,…
- CVE-2026-45109 — High (CVSS 7.5): Next.js is a React framework for building full-stack web applications. From 15.2.0 to before 15.5.18 and 16.2.6, it was…
- CVE-2026-44579 — High (CVSS 7.5): Next.js is a React framework for building full-stack web applications. From to before 15.5.16 and 16.2.5, applications…
All CVEs affecting Vercel Next.js →
Other CWE-1385 vulnerabilities
- CVE-2024-23168 — Critical (CVSS 9.8): Vulnerability in Xiexe XSOverlay before build 647 allows non-local websites to send the malicious commands to the…
- CVE-2025-24964 — Critical (CVSS 9.6): Vitest is a testing framework powered by Vite. Affected versions are subject to arbitrary remote Code Execution when…
- CVE-2024-48849 — Critical (CVSS 9.4): Missing Origin Validation in WebSockets vulnerability in FLXEON. Session management was not sufficient to prevent…
- CVE-2025-52882 — High (CVSS 8.8): Claude Code is an agentic coding tool. Claude Code extensions in VSCode and forks (e.g., Cursor, Windsurf, and…
- CVE-2026-34403 — High (CVSS 8.1): Nginx UI is a web user interface for the Nginx web server. Prior to version 2.3.5, all WebSocket endpoints in nginx-ui…
- CVE-2025-54289 — High (CVSS 8.1): Privilege Escalation in operations API in Canonical LXD <6.5 on multiple platforms allows attacker with read…