Red Hat VEX
RHVEX-CVE-2026-27977
next.js: Next.js: null origin can bypass dev HMR websocket CSRF checks
Details
A CSRF check bypass flaw has been discovered in Next.js. In the 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:9 | aspnetcore-runtime-7.0 | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | aspnetcore-targeting-pack-7.0 | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | dotnet-apphost-pack-7.0 | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | dotnet-host | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | dotnet-hostfxr-7.0 | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | dotnet-runtime-7.0 | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | dotnet-sdk-7.0 | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | dotnet-sdk-7.0-source-built-artifacts | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | dotnet-targeting-pack-7.0 | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | dotnet-templates-7.0 | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | dotnet7.0 | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | netstandard-targeting-pack-2.1 | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2026-27977
- https://bugzilla.redhat.com/show_bug.cgi?id=2448514
- https://www.cve.org/CVERecord?id=CVE-2026-27977
- https://nvd.nist.gov/vuln/detail/CVE-2026-27977
- 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