CVE-2026-27977Next.js: null origin can bypass dev HMR websocket CSRF checks
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.3% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.3%
- percentile 10%
- Fix
- Named by a source
- CVE published 18 Mar 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.3% (+0) · Network attack vector (+10) · No privileges required (+5)
Immediate actions
- next (npm): upgrade to 16.1.7 or later on your release line.
- Patch: https://github.com/vercel/next.js/commit/862f9b9bb41d235e0d8cf44aa811e7fd118cee2a
- Mitigation: https://github.com/vercel/next.js/security/advisories/GHSA-jcc7-9wpm-mj36
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-27977
Who should check
next (npm) pkg:npm/next
- Affected>= 16.0.1, < 16.1.7Fixed in16.1.7OSV (GHSA-jcc7-9wpm-mj36)
vercel next.js product:vercel/nextjs
- Affected>= 16.0.1, < 16.1.7Affected range ends before16.1.7as published by CNA (CVE List)
- Affected>= 16.0.1, < 16.1.7Affected range ends before16.1.7as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 5.4 MEDIUM (version 3.1)
- Score from
- NVD
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-1385
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 18 Mar 2026Published
References
- patchhttps://github.com/vercel/next.js/commit/862f9b9bb41d235e0d8cf44aa811e7fd118cee2a
- otherhttps://github.com/vercel/next.js/releases/tag/v16.1.7
- mitigationhttps://github.com/vercel/next.js/security/advisories/GHSA-jcc7-9wpm-mj36
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-27977
- otherhttps://github.com/vercel/next.js
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-27977 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-jcc7-9wpm-mj36 (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 31 min ago · osv 30 min ago · nvd 2 h ago · epss 30 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-jcc7-9wpm-mj36